pub enum Aggregate {
Show 16 variants
Average,
Max,
Min,
Count,
Sum,
Interpolation,
StepInterpolation,
TotalVariation,
ContinuousVariance,
DiscreteVariance,
CountGood,
CountUncertain,
CountBad,
DurationGood,
DurationUncertain,
DurationBad,
}Expand description
Datapoint aggregates. See aggregates for more details.
Variants§
Average
Average over datpoint values.
Max
Maximum datapoint value in the given range.
Min
Minimum datapoint value in the given range.
Count
Number of datapoints in the given range.
Sum
Sum of datapoints in the given range.
Interpolation
The interpolated value at the start of each time range.
StepInterpolation
The interpolated value at the start of each time range, treating time series as stepwise.
TotalVariation
The sum of absolute differences between neighboring data points in a period.
ContinuousVariance
The variance of the underlying function when assuming linear or step behavior between data points.
DiscreteVariance
The variance of the discrete set of data points, no weighting for density of points in time.
CountGood
The number of data points in the aggregate period that have a Good status code. Uncertain does not count, irrespective of treatUncertainAsBad parameter.
CountUncertain
The number of data points in the aggregate period that have an Uncertain status code.
CountBad
The number of data points in the aggregate period that have a Bad status code. Uncertain does not count, irrespective of treatUncertainAsBad parameter.
DurationGood
The duration the aggregate is defined and marked as good (regardless of ignoreBadDataPoints parameter). Measured in milliseconds. Equivalent to duration that the previous data point is good and in range.
DurationUncertain
The duration the aggregate is defined and marked as uncertain (regardless of ignoreBadDataPoints parameter). Measured in milliseconds. Equivalent to duration that the previous data point is uncertain and in range.
DurationBad
The duration the aggregate is defined but marked as bad (regardless of ignoreBadDataPoints parameter). Measured in milliseconds. Equivalent to duration that the previous data point is bad and in range.