tsdbimpl

package
v0.0.0-...-fe13f99 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package tsdbimpl contains routines for internally fulfilling tsdb APi requests. tsdbimpl may depend on any scotty package except for tsdbjson and tsdbexec. That is tsdbimpl should do the heavy lifting of fulfilling tsdb requests but not be concerned with parsing or generating json.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Means the metric does not exist
	ErrNoSuchMetric = errors.New("tsdbimpl: No such metric.")
)

Functions

func Query

func Query(
	endpoints *machine.EndpointStore,
	metricName string,
	aggregator tsdb.AggregatorGenerator,
	start, end float64,
	options *QueryOptions) (*tsdb.TaggedTimeSeriesSet, error)

Query queries scotty for given tsdb query.

Types

type QueryOptions

type QueryOptions struct {
	// Filter for "HostName" tag values. Optional
	HostNameFilter tsdb.TagFilter
	// Filter for "appname" tag values. Optional
	AppNameFilter tsdb.TagFilter
	// Filter for "region" tag value. Optional
	RegionFilter tsdb.TagFilter
	// Filter for "ipaddress" tag value. Optional
	IpAddressFilter tsdb.TagFilter
	// True if results should be grouped by "HostName" tag
	GroupByHostName bool
	// True if results should be groupd by "appname" tag.
	GroupByAppName bool
	// True if results should be grouped by region
	GroupByRegion bool
	// True if results should be grouped by ip address
	GroupByIpAddress bool
}

QueryOptions contain optional configurations for the query function.

Jump to

Keyboard shortcuts

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