temporal

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// AvgType calculates the average of all values in the specified interval
	AvgType = "avg_over_time"

	// CountType calculates count of all values in the specified interval
	CountType = "count_over_time"

	// MinType calculates the minimum of all values in the specified interval
	MinType = "min_over_time"

	// MaxType calculates the maximum of all values in the specified interval
	MaxType = "max_over_time"

	// SumType calculates the sum of all values in the specified interval
	SumType = "sum_over_time"

	// StdDevType calculates the standard deviation of all values in the specified interval
	StdDevType = "stddev_over_time"

	// StdVarType calculates the standard variance of all values in the specified interval
	StdVarType = "stdvar_over_time"
)
View Source
const (
	// ResetsType returns the number of counter resets within the provided time range as a time series.
	// Any decrease in the value between two consecutive datapoints is interpreted as a counter reset.
	// ResetsTemporalType should only be used with counters.
	ResetsType = "resets"

	// ChangesType returns the number of times a value changes within the provided time range for
	// a given time series.
	ChangesType = "changes"
)
View Source
const (
	// IRateType calculates the per-second rate of increase of the time series
	// across the specified time range. This is based on the last two data points.
	IRateType = "irate"

	// IDeltaType calculates the difference between the last two values in the time series.
	// IDeltaTemporalType should only be used with gauges.
	IDeltaType = "idelta"
)

Variables

This section is empty.

Functions

func NewAggOp added in v0.4.4

func NewAggOp(args []interface{}, optype string) (transform.Params, error)

NewAggOp creates a new base temporal transform with a specified node

func NewFunctionOp added in v0.4.4

func NewFunctionOp(args []interface{}, optype string) (transform.Params, error)

NewFunctionOp creates a new base temporal transform for functions

func NewRateOp added in v0.4.4

func NewRateOp(args []interface{}, optype string) (transform.Params, error)

NewRateOp creates a new base temporal transform for rate functions

Types

type MakeProcessor

type MakeProcessor func(op baseOp, controller *transform.Controller, opts transform.Options) Processor

MakeProcessor is a way to create a transform

type Processor

type Processor interface {
	Process(values []float64) float64
}

Processor is implemented by the underlying transforms

Jump to

Keyboard shortcuts

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