[][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 PartialEq<BehaviorCriteria> for BehaviorCriteria[src]

impl Default for BehaviorCriteria[src]

impl Clone for BehaviorCriteria[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for BehaviorCriteria[src]

impl Serialize for BehaviorCriteria[src]

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

Auto Trait Implementations

impl Send for BehaviorCriteria

impl Sync for BehaviorCriteria

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self