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: 0

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