EdgexAgent/device-ble-go/vendor/github.com/openziti/metrics/gauge.go
2025-07-10 20:40:32 +08:00

22 lines
307 B
Go

package metrics
import (
"github.com/rcrowley/go-metrics"
)
// Gauge represents a metric which is measuring a count and a rate
type Gauge interface {
Metric
Value() int64
Update(int64)
}
type gaugeImpl struct {
metrics.Gauge
dispose func()
}
func (gauge *gaugeImpl) Dispose() {
gauge.dispose()
}