redistimeseries

package
v0.0.0-...-a552c4f Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devops

type Devops struct {
	*devops.Core
}

Devops produces RedisTimeSeries-specific queries for all the devops query types.

func NewDevops

func NewDevops(start, end time.Time, scale int) *Devops

NewDevops makes an Devops object ready to generate Queries.

func (*Devops) GenerateEmptyQuery

func (d *Devops) GenerateEmptyQuery() query.Query

GenerateEmptyQuery returns an empty query.RedisTimeSeries

func (*Devops) GroupByTime

func (d *Devops) GroupByTime(qi query.Query, nHosts, numMetrics int, timeRange time.Duration)

GroupByTime fetches the MAX for numMetrics metrics under 'cpu', per minute for nhosts hosts, every 1 mins for 1 hour

func (*Devops) GroupByTimeAndPrimaryTag

func (d *Devops) GroupByTimeAndPrimaryTag(qi query.Query, numMetrics int)

GroupByTimeAndPrimaryTag selects the AVG of one cpu metric/all cpu metrics per device per hour for 12 hours

func (*Devops) MaxAllCPU

func (d *Devops) MaxAllCPU(qi query.Query, nHosts int)

MaxAllCPU fetches the aggregate across all CPU metrics per hour over 1 hour for a single host. Currently only one host is supported

Jump to

Keyboard shortcuts

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