frostfs-node/pkg/innerring/metrics/metrics.go
Alejandro Lopez 0f7d3219b8
All checks were successful
ci/woodpecker/pr/pre-commit Pipeline was successful
[#374] Add inner-ring event metrics
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
2023-05-29 12:03:49 +03:00

15 lines
381 B
Go

package metrics
import "time"
type Register interface {
SetEpoch(epoch uint64)
SetHealth(s int32)
AddEvent(d time.Duration, typ string, success bool)
}
type DefaultRegister struct{}
func (DefaultRegister) SetEpoch(uint64) {}
func (DefaultRegister) SetHealth(int32) {}
func (DefaultRegister) AddEvent(time.Duration, string, bool) {}