()
| 22 | type statsInput struct{ inputtest.Base } |
| 23 | |
| 24 | func (statsInput) Stats() baker.InputStats { |
| 25 | bag := baker.MetricsBag{} |
| 26 | bag.AddRawCounter("input.raw_count", 10) |
| 27 | bag.AddDeltaCounter("input.delta_counter", 1) |
| 28 | bag.AddGauge("input.gauge", math.Pi) |
| 29 | bag.AddHistogram("input.hist", []float64{1, 2, 3}) |
| 30 | bag.AddTimings("input.timings", []time.Duration{1 * time.Second, 10 * time.Second, 100 * time.Second}) |
| 31 | |
| 32 | return baker.InputStats{ |
| 33 | NumProcessedLines: 93, |
| 34 | CustomStats: map[string]string{"k1": "v1", "k2": "v2"}, |
| 35 | Metrics: bag, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | type statsFilter struct{ filtertest.Base } |
| 40 |
nothing calls this directly
no test coverage detected