reporter

package
Version: v0.0.0-...-ee9019f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heroku

type Heroku struct {
	// URL is the URL of the Heroku service.
	URL string

	// Interval is the duration in which to wait before sending the next
	// MetricSet.
	Interval time.Duration

	// Inbox is the channel Measurements from pollers and listeners are
	// received on.
	Inbox chan *am.Measurement

	// Debug turns on more verbose logging.
	Debug bool
}

Heroku reporter stores the parameters necessary to report Metrics to Heroku's metrics ingestion endpoint.

func (Heroku) Report

func (r Heroku) Report(ctx context.Context)

Report reads measurements from Inbox, and produces MetricSets that get sent to the Heroku metrics service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL