diff options
Diffstat (limited to 'src/go/plugin/go.d/pkg/metrics/metrics.go')
-rw-r--r-- | src/go/plugin/go.d/pkg/metrics/metrics.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/go/plugin/go.d/pkg/metrics/metrics.go b/src/go/plugin/go.d/pkg/metrics/metrics.go new file mode 100644 index 000000000..9f6b7529b --- /dev/null +++ b/src/go/plugin/go.d/pkg/metrics/metrics.go @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +package metrics + +import "github.com/netdata/netdata/go/plugins/plugin/go.d/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) +} |