metrics

package
v61.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCounter

func NewCounter(gauge Gauge) *counter

func NewEmitter

func NewEmitter(dataDogClient datadog.Client, environment string) *emitter

func NewMetric

func NewMetric(name string, metricType string, emitter *emitter) *metric

func NewNullCounter

func NewNullCounter(gauge Gauge) *nullCounter

func NewTimer

func NewTimer(gauge Gauge) *timer

Types

type Counter

type Counter interface {
	Inc(lager.Logger, ...string)
	IncN(lager.Logger, int, ...string)
}

type Emitter

type Emitter interface {
	Counter(name string) Counter
	Gauge(name string) Gauge
	Timer(name string) Timer
}

func BuildEmitter

func BuildEmitter(apiKey string, environment string) Emitter

type Gauge

type Gauge interface {
	Update(lager.Logger, float32, ...string)
}

type Timer

type Timer interface {
	Time(lager.Logger, func(), ...string)
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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