metricstat

package
v0.0.0-...-9b2c719 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricStat

type MetricStat struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

MetricStat structure

func New

func New(r metrics.Registry, t, d time.Duration) *MetricStat

New return metricstat

func (*MetricStat) Clear

func (m *MetricStat) Clear()

Clear metric stats

func (*MetricStat) FromDuration

func (m *MetricStat) FromDuration(d time.Duration) map[string][]*ts.Bucket

FromDuration returns series range of buckets

Jump to

Keyboard shortcuts

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