Struct aws_sdk_iot::model::statistical_threshold::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for StatisticalThreshold
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn statistic(self, input: impl Into<String>) -> Self
pub fn statistic(self, input: impl Into<String>) -> Self
The percentile that resolves to a threshold value by which compliance with a behavior is determined. Metrics are collected over the specified period (durationSeconds
) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below (comparisonOperator
) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.
sourcepub fn set_statistic(self, input: Option<String>) -> Self
pub fn set_statistic(self, input: Option<String>) -> Self
The percentile that resolves to a threshold value by which compliance with a behavior is determined. Metrics are collected over the specified period (durationSeconds
) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below (comparisonOperator
) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.
sourcepub fn build(self) -> StatisticalThreshold
pub fn build(self) -> StatisticalThreshold
Consumes the builder and constructs a StatisticalThreshold
.