Documentation ¶
Overview ¶
Package convert provides a way to use Counters, Histograms, or Gauges as one of the other types
Index ¶
- func NewCounterAsGauge(c metrics.Counter) metrics.Gauge
- func NewCounterAsHistogram(c metrics.Counter) metrics.Histogram
- func NewGaugeAsCounter(g metrics.Gauge) metrics.Counter
- func NewGaugeAsHistogram(g metrics.Gauge) metrics.Histogram
- func NewHistogramAsCounter(h metrics.Histogram) metrics.Counter
- func NewHistogramAsGauge(h metrics.Histogram) metrics.Gauge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCounterAsGauge ¶
NewCounterAsGauge returns a Gauge that actually writes the value on an underlying Counter
func NewCounterAsHistogram ¶
NewCounterAsHistogram returns a Histogram that actually writes the value on an underlying Counter
func NewGaugeAsCounter ¶
NewGaugeAsCounter returns a Counter that actually writes the value on an underlying Gauge
func NewGaugeAsHistogram ¶
NewGaugeAsHistogram returns a Histogram that actually writes the value on an underlying Gauge
func NewHistogramAsCounter ¶
NewHistogramAsCounter returns a Counter that actually writes the value on an underlying Histogram
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.