aggregation

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// SumType adds all non nan elements in a list of series
	SumType = "sum"
	// MinType takes the minimum all non nan elements in a list of series
	MinType = "min"
	// MaxType takes the maximum all non nan elements in a list of series
	MaxType = "max"
	// AverageType averages all non nan elements in a list of series
	AverageType = "avg"
	// StandardDeviationType takes the standard deviation of all non nan elements
	// in a list of series
	StandardDeviationType = "stddev"
	// StandardVarianceType takes the standard variance of all non nan elements
	// in a list of series
	StandardVarianceType = "var"
	// CountType counts all non nan elements in a list of series
	CountType = "count"
)

Variables

This section is empty.

Functions

func NewAggregationOp

func NewAggregationOp(
	opType string,
	params NodeParams,
) (parser.Params, error)

NewAggregationOp creates a new aggregation operation

Types

type NodeParams

type NodeParams struct {
	// MatchingTags is the set of tags by which the aggregation groups output series
	MatchingTags []string
	// Without indicates if series should use only the MatchingTags or if MatchingTags
	// should be excluded from grouping
	Without bool
}

NodeParams contains additional parameters required for aggregation ops

Jump to

Keyboard shortcuts

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