metrics

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Name string
	// contains filtered or unexported fields
}

func NewMetric

func NewMetric(name string) *Metric

func (*Metric) RecordValue

func (m *Metric) RecordValue(v int64)

func (*Metric) RotateMinute

func (m *Metric) RotateMinute()

func (*Metric) StoreSnapshot

func (m *Metric) StoreSnapshot()

func (*Metric) String

func (m *Metric) String() string

type Metrics

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

func NewMetrics

func NewMetrics() Metrics

func (*Metrics) RecordValue

func (m *Metrics) RecordValue(name string, val int64)

func (*Metrics) String

func (m *Metrics) String() string

Jump to

Keyboard shortcuts

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