netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/pkg/metrics/metrics.go

Summary

Maintainability
A
0 mins
Test Coverage
// SPDX-License-Identifier: GPL-3.0-or-later

package metrics

import "github.com/netdata/netdata/go/go.d.plugin/pkg/stm"

// Observer is an interface that wraps the Observe method, which is used by
// Histogram and Summary to add observations.
type Observer interface {
    stm.Value
    Observe(v float64)
}