librato

package
v0.0.0-...-8675af2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SanitizationFunc

type SanitizationFunc func(string) string

type Sink

type Sink struct {
	SanitizationFunc
	Source      string
	FlushPeriod time.Duration
	// contains filtered or unexported fields
}

func New

func New(user, apiKey, prefix string) *Sink

func (*Sink) EmitComplete

func (s *Sink) EmitComplete(job string, status health.CompletionStatus, nanos int64, kvs map[string]string)

func (*Sink) EmitEvent

func (s *Sink) EmitEvent(job string, event string, kvs map[string]string)

func (*Sink) EmitEventErr

func (s *Sink) EmitEventErr(job string, event string, inputErr error, kvs map[string]string)

func (*Sink) EmitGauge

func (s *Sink) EmitGauge(job string, event string, value float64, kvs map[string]string)

func (*Sink) EmitTiming

func (s *Sink) EmitTiming(job string, event string, nanos int64, kvs map[string]string)

func (*Sink) Stop

func (s *Sink) Stop()

Jump to

Keyboard shortcuts

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