github.com/netdata/go.d.plugin@v0.58.1/pkg/metrics/metrics.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package metrics
     4  
     5  import "github.com/netdata/go.d.plugin/pkg/stm"
     6  
     7  // Observer is an interface that wraps the Observe method, which is used by
     8  // Histogram and Summary to add observations.
     9  type Observer interface {
    10  	stm.Value
    11  	Observe(v float64)
    12  }