metricstest

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	metrics.MetricsHandler
	// contains filtered or unexported fields
}

func MustNewHandler

func MustNewHandler(logger log.Logger) *Handler

func NewHandler

func NewHandler(logger log.Logger) (*Handler, error)

func (*Handler) MustSnapshot

func (mh *Handler) MustSnapshot() Snapshot

func (*Handler) Snapshot

func (mh *Handler) Snapshot() (Snapshot, error)

func (*Handler) Stop

func (*Handler) Stop(log.Logger)

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func (Snapshot) Counter

func (s Snapshot) Counter(name string, tags ...metrics.Tag) (float64, error)

func (Snapshot) Gauge

func (s Snapshot) Gauge(name string, tags ...metrics.Tag) (float64, error)

func (Snapshot) MustCounter

func (s Snapshot) MustCounter(name string, tags ...metrics.Tag) float64

func (Snapshot) MustGauge

func (s Snapshot) MustGauge(name string, tags ...metrics.Tag) float64

func (Snapshot) String

func (s Snapshot) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL