MCPcopy
hub / github.com/influxdata/telegraf / AggregatingOutput

Interface AggregatingOutput

output.go:20–29  ·  view source on GitHub ↗

AggregatingOutput adds aggregating functionality to an Output. May be used if the Output only accepts a fixed set of aggregations over a time period. These functions may be called concurrently to the Write function.

Source from the content-addressed store, hash-verified

18// if the Output only accepts a fixed set of aggregations over a time period.
19// These functions may be called concurrently to the Write function.
20type AggregatingOutput interface {
21 Output
22
23 // Add the metric to the aggregator
24 Add(in Metric)
25 // Push returns the aggregated metrics and is called every flush interval.
26 Push() []Metric
27 // Reset signals that the aggregator period is completed.
28 Reset()
29}

Callers

nothing calls this directly

Implementers 11

AzureMonitorplugins/outputs/azure_monitor/azure_mo
Starlarkplugins/aggregators/starlark/starlark.
Mergeplugins/aggregators/merge/merge.go
Quantileplugins/aggregators/quantile/quantile.
MinMaxplugins/aggregators/minmax/minmax.go
BasicStatsplugins/aggregators/basicstats/basicst
Finalplugins/aggregators/final/final.go
Derivativeplugins/aggregators/derivative/derivat
Histogramplugins/aggregators/histogram/histogra
ValueCounterplugins/aggregators/valuecounter/value
mockAggregatormodels/running_aggregator_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…