stub

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	LabelValues  []string
	CounterValue float64
}

Counter is a stub implementation of the go-kit metrics.Counter interface.

func (*Counter) Add

func (c *Counter) Add(delta float64)

Add adds the given value to the counter.

func (*Counter) With

func (c *Counter) With(labelValues ...string) metrics.Counter

With returns a new Counter with the given label values.

type Gauge

type Gauge struct {
	LabelValues []string
	GaugeValue  float64
}

Gauge is a stub implementation of the go-kit metrics.Gauge interface.

func (*Gauge) Add

func (g *Gauge) Add(delta float64)

Add adds the given value to the gauge.

func (*Gauge) Set

func (g *Gauge) Set(value float64)

Set sets the gauge value.

func (*Gauge) With

func (g *Gauge) With(labelValues ...string) metrics.Gauge

With returns a new Gauge with the given label values.

type Histogram

type Histogram struct {
	LabelValues   []string
	ObservedValue float64
}

Histogram is a stub implementation of the go-kit metrics.Histogram interface.

func (*Histogram) Observe

func (h *Histogram) Observe(value float64)

Observe records the given value.

func (*Histogram) With

func (h *Histogram) With(labelValues ...string) metrics.Histogram

With returns a new Histogram with the given label values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳