mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
14 lines
295 B
Go
14 lines
295 B
Go
package streamaggr
|
|
|
|
type countSamplesAggrValue struct {
|
|
count uint64
|
|
}
|
|
|
|
func (av *countSamplesAggrValue) pushSample(_ *pushSampleCtx) {
|
|
av.count++
|
|
}
|
|
|
|
func (av *countSamplesAggrValue) flush(ctx *flushCtx, key string) {
|
|
ctx.appendSeries(key, "count_samples", float64(av.count))
|
|
av.count = 0
|
|
}
|