github.com/Jeffail/benthos/v3@v3.65.0/lib/metrics/flat.go (about) 1 package metrics 2 3 // Flat is an interface for setting metrics via flat paths. 4 type Flat interface { 5 // Flat is an interface for setting metrics via flat paths. 6 // Incr increments a metric by an amount. 7 Incr(path string, count int64) error 8 9 // Decr decrements a metric by an amount. 10 Decr(path string, count int64) error 11 12 // Timing sets a timing metric. 13 Timing(path string, delta int64) error 14 15 // Gauge sets a gauge metric. 16 Gauge(path string, value int64) error 17 18 // Close stops aggregating stats and cleans up resources. 19 Close() error 20 }