Documentation
¶
Index ¶
- Constants
- type Aggregate
- func (aggregate *Aggregate) Evaluate(entries []config.GenericMap) error
- func (aggregate *Aggregate) GetMetrics() []config.GenericMap
- func (aggregate *Aggregate) LabelsFromEntry(entry config.GenericMap) (Labels, bool)
- func (aggregate *Aggregate) UpdateByEntry(entry config.GenericMap, normalizedValues NormalizedValues, labels Labels) error
- type Aggregates
- type GroupState
- type Labels
- type NormalizedValues
Constants ¶
View Source
const ( OperationSum = "sum" OperationAvg = "avg" OperationMax = "max" OperationMin = "min" OperationCount = "count" OperationRawValues = "raw_values" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func (*Aggregate) Evaluate ¶
func (aggregate *Aggregate) Evaluate(entries []config.GenericMap) error
func (*Aggregate) GetMetrics ¶
func (aggregate *Aggregate) GetMetrics() []config.GenericMap
func (*Aggregate) LabelsFromEntry ¶
func (aggregate *Aggregate) LabelsFromEntry(entry config.GenericMap) (Labels, bool)
func (*Aggregate) UpdateByEntry ¶
func (aggregate *Aggregate) UpdateByEntry(entry config.GenericMap, normalizedValues NormalizedValues, labels Labels) error
type Aggregates ¶
type Aggregates struct { Aggregates []Aggregate // contains filtered or unexported fields }
func NewAggregatesFromConfig ¶
func NewAggregatesFromConfig(aggConfig *api.Aggregates) (Aggregates, error)
func (*Aggregates) Evaluate ¶
func (aggregates *Aggregates) Evaluate(entries []config.GenericMap) error
func (*Aggregates) GetMetrics ¶
func (aggregates *Aggregates) GetMetrics() []config.GenericMap
type GroupState ¶
type GroupState struct {
// contains filtered or unexported fields
}
type NormalizedValues ¶
type NormalizedValues string
Click to show internal directories.
Click to hide internal directories.