Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentAggregateWindow ¶
CurrentAggregateWindow returns the current timestamp (in millis) at which the aggregate is happening
func NextAggregateWindow ¶
NextAggregateWindow returns the next timestamp at which the aggregate will happen
func PreviousAggregateWindow ¶
PreviousAggregateWindow returns the previous timestamp (in millis) at which the aggregate happened
Types ¶
type Abel ¶
type Abel struct {
Url string
}
Abel is the client used to contact Abel to query for the required metrics
func (*Abel) GetCount ¶
func (w *Abel) GetCount(metric string, tags []string, start int64, end int64, duration int64) (int64, jsonparser.ValueType, error)
GetCount gets the count of the metric associated with it's tags. We can filter the responses by further start & end. We can also define the window of aggregation using the duration parameter.
Click to show internal directories.
Click to hide internal directories.