metric

package
v0.2.1-0...-b772245 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gatherer

type Gatherer interface {
	// GatherSingle gathers one single metric at a point in time.
	GatherSingle(ctx context.Context, query model.Query, t time.Time) ([]model.MetricSeries, error)
	// GatherRange gathers multiple metrics based on a start and an end using a step duration
	// to know how many metrics needs to gather.
	// The returned metrics on the series should be ordered.
	GatherRange(ctx context.Context, query model.Query, start, end time.Time, step time.Duration) ([]model.MetricSeries, error)
}

Gatherer knows how to gather metrics from different backends.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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