canary: github.com/canaryio/canary/pkg/libratopublisher Index | Files

package libratopublisher

import "github.com/canaryio/canary/pkg/libratopublisher"

Index

Package Files

publisher.go

type Publisher Uses

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

Publisher implements the canary.Publisher interface and is our means of ingesting canary.Measurements and converting them to Librato metrics.

func New Uses

func New(user, token, source string) (p *Publisher)

New takes a user, token and source and return a pointer to a Publisher.

func NewFromEnv Uses

func NewFromEnv() (*Publisher, error)

NewFromEnv is a convenience func that wraps New, and populates the required arguments via environment variables. If required variables cannot be found, errors are returned.

func (*Publisher) Publish Uses

func (p *Publisher) Publish(m sensor.Measurement) (err error)

Publish takes a canary.Measurement and delivers it to the aggregator.

Package libratopublisher imports 5 packages (graph). Updated 2016-08-01. Refresh now. Tools for package owners.