libratoaggregator

package
v0.0.0-...-b9af62b Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	User   string
	Token  string
	Source string
	C      chan map[string]float64
	// contains filtered or unexported fields
}

An Aggregator is a continuous client to Librato. It listens for new metric pairs to come in over a channel, aggregates them according to name, and submits those metrics to the Librato API every 5 seconds.

func New

func New(user, token, source string) (a *Aggregator)

New takes a user, token and source and returns a pointer to an Aggregator.

Jump to

Keyboard shortcuts

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