timers

package
v0.0.0-...-35869c8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Points           Float64Slice
	Amount_submitted int64
}

type Float64Slice

type Float64Slice []float64

func (Float64Slice) Len

func (s Float64Slice) Len() int

func (Float64Slice) Less

func (s Float64Slice) Less(i, j int) bool

func (Float64Slice) Swap

func (s Float64Slice) Swap(i, j int)

type Percentile

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

func NewPercentile

func NewPercentile(pctl string) (*Percentile, error)

func (*Percentile) String

func (p *Percentile) String() string

type Percentiles

type Percentiles []*Percentile

func NewPercentiles

func NewPercentiles(pctls string) (*Percentiles, error)

func (*Percentiles) Set

func (a *Percentiles) Set(s string) error

func (*Percentiles) String

func (a *Percentiles) String() string

type Timers

type Timers struct {
	Values map[string]Data
	// contains filtered or unexported fields
}

func New

func New(prefix string, pctls Percentiles) *Timers

func (*Timers) Add

func (timers *Timers) Add(metric *common.Metric)

Add updates the timers map, adding the metric key if needed

func (*Timers) Process

func (timers *Timers) Process(buf []byte, now int64, interval int) ([]byte, int64)

Process computes the outbound metrics for timers and puts them in the buffer

func (*Timers) String

func (t *Timers) String() string

Jump to

Keyboard shortcuts

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