[][src]Struct rusoto_iot::BehaviorCriteria

pub struct BehaviorCriteria {
    pub comparison_operator: Option<String>,
    pub consecutive_datapoints_to_alarm: Option<i64>,
    pub consecutive_datapoints_to_clear: Option<i64>,
    pub duration_seconds: Option<i64>,
    pub statistical_threshold: Option<StatisticalThreshold>,
    pub value: Option<MetricValue>,
}

The criteria by which the behavior is determined to be normal.

Fields

comparison_operator: Option<String>

The operator that relates the thing measured (metric) to the criteria (containing a value or statisticalThreshold).

consecutive_datapoints_to_alarm: Option<i64>

If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. If not specified, the default is 1.

consecutive_datapoints_to_clear: Option<i64>

If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.

duration_seconds: Option<i64>

Use this to specify the time duration over which the behavior is evaluated, for those criteria which have a time dimension (for example, NUM_MESSAGES_SENT). For a statisticalThreshhold metric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank.

statistical_threshold: Option<StatisticalThreshold>

A statistical ranking (percentile) which indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

value: Option<MetricValue>

The value to be compared with the metric.

Trait Implementations

impl Clone for BehaviorCriteria[src]

impl Default for BehaviorCriteria[src]

impl PartialEq<BehaviorCriteria> for BehaviorCriteria[src]

impl Debug for BehaviorCriteria[src]

impl StructuralPartialEq for BehaviorCriteria[src]

impl<'de> Deserialize<'de> for BehaviorCriteria[src]

impl Serialize for BehaviorCriteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self