metric

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphiteMap

type GraphiteMap map[string]float64

type Metric

type Metric struct {
	Value float64
	Time  time.Time
}

type Metrics

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

func NewMetrics

func NewMetrics(prefix string) *Metrics

func (*Metrics) Get

func (m *Metrics) Get(key string) Metric

func (*Metrics) GetGraphiteMap

func (m *Metrics) GetGraphiteMap() GraphiteMap

func (*Metrics) Iterate

func (m *Metrics) Iterate(f func(string, string, Metric))

func (*Metrics) Set

func (m *Metrics) Set(key string, value float64)

type MetricsMap added in v0.5.0

type MetricsMap map[string]*Metrics

Jump to

Keyboard shortcuts

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