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

Method Add

plugins/processors/streamingprocessor.go:31–36  ·  view source on GitHub ↗
(m telegraf.Metric, acc telegraf.Accumulator)

Source from the content-addressed store, hash-verified

29}
30
31func (sp *streamingProcessor) Add(m telegraf.Metric, acc telegraf.Accumulator) error {
32 for _, m := range sp.processor.Apply(m) {
33 acc.AddMetric(m)
34 }
35 return nil
36}
37
38func (*streamingProcessor) Stop() {
39}

Callers

nothing calls this directly

Calls 2

ApplyMethod · 0.65
AddMetricMethod · 0.65

Tested by

no test coverage detected