Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type NumberHistory ¶
type NumberHistory struct { Current float64 `json:"current"` Past NumberPast `json:"past"` }
type NumberPast ¶
type RateAverage ¶
type ReadStatus ¶
type ReadStatus struct { ReadRate RateAverage `json:"readRate"` SourcesMostRead map[string]RateAverage `json:"sourcesMostRead"` }
type Service ¶
type Service interface { GetRateAverage(ctx context.Context, metricName string, sumBy string) (rate RateAverage, errs error) GetNumberHistory(ctx context.Context, metricName string) (nh NumberHistory, errs error) GetRelativeRateByLabel(ctx context.Context, rateSum RateAverage, metricName string, key string) (rateByKey map[string]RateAverage, errs error) GetEventAttributeTypes(ctx context.Context, metric, sumBy, period string) (attrs Attributes, err error) GetEventAttributeValuesByName(ctx context.Context, name string) (vals []string, err error) GetDuration(ctx context.Context, metricName string, quantile float64, t time.Duration) (dSeconds float64, errs error) }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.