Struct aws_sdk_iot::types::builders::StatisticalThresholdBuilder
source · #[non_exhaustive]pub struct StatisticalThresholdBuilder { /* private fields */ }
Expand description
A builder for StatisticalThreshold
.
Implementations§
source§impl StatisticalThresholdBuilder
impl StatisticalThresholdBuilder
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 get_statistic(&self) -> &Option<String>
pub fn get_statistic(&self) -> &Option<String>
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
.
Trait Implementations§
source§impl Clone for StatisticalThresholdBuilder
impl Clone for StatisticalThresholdBuilder
source§fn clone(&self) -> StatisticalThresholdBuilder
fn clone(&self) -> StatisticalThresholdBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatisticalThresholdBuilder
impl Debug for StatisticalThresholdBuilder
source§impl Default for StatisticalThresholdBuilder
impl Default for StatisticalThresholdBuilder
source§fn default() -> StatisticalThresholdBuilder
fn default() -> StatisticalThresholdBuilder
impl StructuralPartialEq for StatisticalThresholdBuilder
Auto Trait Implementations§
impl Freeze for StatisticalThresholdBuilder
impl RefUnwindSafe for StatisticalThresholdBuilder
impl Send for StatisticalThresholdBuilder
impl Sync for StatisticalThresholdBuilder
impl Unpin for StatisticalThresholdBuilder
impl UnwindSafe for StatisticalThresholdBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more