pub struct DatapointAggregate {Show 17 fields
pub timestamp: i64,
pub average: f64,
pub max: f64,
pub min: f64,
pub count: f64,
pub sum: f64,
pub interpolation: f64,
pub step_interpolation: f64,
pub continuous_variance: f64,
pub discrete_variance: f64,
pub total_variation: f64,
pub count_good: f64,
pub count_uncertain: f64,
pub count_bad: f64,
pub duration_good: f64,
pub duration_uncertain: f64,
pub duration_bad: f64,
}Expand description
An aggregate data point.
Fields§
§timestamp: i64Timestamp in milliseconds since epoch.
average: f64Average of values in aggregate.
max: f64Max value in aggregate.
min: f64Min value in aggregate.
count: f64Number of values in aggregate.
sum: f64Sum of values in aggregate.
interpolation: f64Interpolated value.
step_interpolation: f64Step-interpolated value.
continuous_variance: f64The variance of the underlying function when assuming linear or step behavior between data points.
discrete_variance: f64The variance of the discrete set of data points, no weighting for density of points in time.
total_variation: f64The sum of absolute differences between neighboring data points in a period.
count_good: f64The number of data points in the aggregate period that have a Good status code. Uncertain does not count, irrespective of treatUncertainAsBad parameter.
count_uncertain: f64The number of data points in the aggregate period that have an Uncertain status code.
count_bad: f64The number of data points in the aggregate period that have a Bad status code. Uncertain does not count, irrespective of treatUncertainAsBad parameter.
duration_good: f64The 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.
duration_uncertain: f64The 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.
duration_bad: f64The 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.
Trait Implementations§
Source§impl Clone for DatapointAggregate
impl Clone for DatapointAggregate
Source§fn clone(&self) -> DatapointAggregate
fn clone(&self) -> DatapointAggregate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more