stat

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter interface {
	Report(stats ...*Stat)
	Finish() error
}

func Console

func Console() Reporter

func Noop added in v0.1.2

func Noop() Reporter

type Stat

type Stat struct {
	Name      string
	Timestamp time.Time
	Tags      map[string]string
	Fields    map[string]float64
}

func New

func New(name string) *Stat

func (*Stat) Clone added in v0.2.0

func (s *Stat) Clone() *Stat

func (*Stat) FloatField

func (s *Stat) FloatField(name string, value float64) *Stat

func (*Stat) Int64Field

func (s *Stat) Int64Field(name string, value int64) *Stat

func (*Stat) IntField

func (s *Stat) IntField(name string, value int) *Stat

func (*Stat) SetTime

func (s *Stat) SetTime(t time.Time) *Stat

func (*Stat) Tag

func (s *Stat) Tag(name, value string) *Stat

Jump to

Keyboard shortcuts

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