instrumentation

package
v0.0.0-...-6217932 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Name string
	Rate float32
}

Stats objects can represent an individual variable or a parametrized one, settable using the *Var() methods.

func NewCounter

func NewCounter(name string, rate float32) *Counter

func (*Counter) Inc

func (c *Counter) Inc(value int64)

func (*Counter) IncVar

func (c *Counter) IncVar(sfx string, value int64)

type Gauge

type Gauge struct {
	Name string
	Rate float32
}

func NewGauge

func NewGauge(name string, rate float32) *Gauge

func (*Gauge) Set

func (g *Gauge) Set(value int64)

func (*Gauge) SetVar

func (g *Gauge) SetVar(sfx string, value int64)

type Timing

type Timing struct {
	Name string
	Rate float32
}

func NewTiming

func NewTiming(name string, rate float32) *Timing

func (*Timing) Add

func (t *Timing) Add(value int64)

func (*Timing) AddVar

func (t *Timing) AddVar(sfx string, value int64)

Jump to

Keyboard shortcuts

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