dogstatsd

package
Version: v1.7.1-0...-29a0ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

it's commonly used for non-timer cases where we want these summaries, that's what this is for.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func New

func New(addr, prefix string, tags []string) (Backend, error)

note: library does not auto-add ending dot to prefix, specify it if you want it

func (Backend) NewCount

func (b Backend) NewCount(key string) met.Count

func (Backend) NewGauge

func (b Backend) NewGauge(key string, val int64) met.Gauge

func (Backend) NewMeter

func (b Backend) NewMeter(key string, val int64) met.Meter

func (Backend) NewTimer

func (b Backend) NewTimer(key string, val time.Duration) met.Timer

type Count

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

func (Count) Inc

func (c Count) Inc(val int64)

type Gauge

type Gauge struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Gauge) Dec

func (g *Gauge) Dec(val int64)

func (*Gauge) Inc

func (g *Gauge) Inc(val int64)

func (*Gauge) Value

func (g *Gauge) Value(val int64)

type Meter

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

func (Meter) Value

func (m Meter) Value(val int64)

type Timer

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

func (Timer) Value

func (t Timer) Value(val time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL