()
| 55 | type statsOutput struct{ outputtest.Base } |
| 56 | |
| 57 | func (statsOutput) Stats() baker.OutputStats { |
| 58 | bag := baker.MetricsBag{} |
| 59 | bag.AddRawCounter("output.raw_count", 3) |
| 60 | bag.AddDeltaCounter("output.delta_counter", 7) |
| 61 | bag.AddGauge("output.gauge", math.Pi*3) |
| 62 | bag.AddHistogram("output.hist", []float64{8, 9, 10, 11}) |
| 63 | bag.AddTimings("output.timings", []time.Duration{1 * time.Hour, 10 * time.Hour, 100 * time.Hour}) |
| 64 | |
| 65 | return baker.OutputStats{ |
| 66 | NumProcessedLines: 53, |
| 67 | NumErrorLines: 7, |
| 68 | CustomStats: map[string]string{"k3": "v3", "k4": "v4"}, |
| 69 | Metrics: bag, |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | type statsUpload struct{ uploadtest.Base } |
| 74 |
nothing calls this directly
no test coverage detected