metrics

package
v41.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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(metric Metric) *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(metric Metric) *nullCounter

func NewTimer

func NewTimer(metric Metric) *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 Metric

type Metric 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 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