pub struct MetricAlarm {Show 27 fields
pub alarm_name: String,
pub alarm_arn: String,
pub alarm_description: Option<String>,
pub actions_enabled: bool,
pub ok_actions: Vec<String>,
pub alarm_actions: Vec<String>,
pub insufficient_data_actions: Vec<String>,
pub state_value: AlarmState,
pub state_reason: String,
pub state_updated_timestamp: DateTime<Utc>,
pub metric_name: Option<String>,
pub namespace: Option<String>,
pub statistic: Option<String>,
pub extended_statistic: Option<String>,
pub dimensions: BTreeMap<String, String>,
pub period: Option<i64>,
pub unit: Option<String>,
pub evaluation_periods: i64,
pub datapoints_to_alarm: Option<i64>,
pub threshold: Option<f64>,
pub comparison_operator: String,
pub treat_missing_data: Option<String>,
pub evaluate_low_sample_count_percentile: Option<String>,
pub threshold_metric_id: Option<String>,
pub configuration_updated_timestamp: DateTime<Utc>,
pub alarm_configuration_updated_timestamp: DateTime<Utc>,
pub metrics: Vec<AlarmMetricQuery>,
}Fields§
§alarm_name: String§alarm_arn: String§alarm_description: Option<String>§actions_enabled: bool§ok_actions: Vec<String>§alarm_actions: Vec<String>§insufficient_data_actions: Vec<String>§state_value: AlarmState§state_reason: String§state_updated_timestamp: DateTime<Utc>§metric_name: Option<String>§namespace: Option<String>§statistic: Option<String>§extended_statistic: Option<String>§dimensions: BTreeMap<String, String>§period: Option<i64>§unit: Option<String>§evaluation_periods: i64§datapoints_to_alarm: Option<i64>§threshold: Option<f64>§comparison_operator: String§treat_missing_data: Option<String>§evaluate_low_sample_count_percentile: Option<String>§threshold_metric_id: Option<String>ThresholdMetricId — references the metric-math id that produces an
anomaly-detection band (used with the *UpperThreshold /
*LowerThreshold comparison operators instead of a static Threshold).
configuration_updated_timestamp: DateTime<Utc>§alarm_configuration_updated_timestamp: DateTime<Utc>§metrics: Vec<AlarmMetricQuery>Metrics — the metric-math / cross-account alarm definition (a list of
MetricDataQuery). Set instead of the single-metric fields when the
alarm evaluates an expression or a metric in another account.
Trait Implementations§
Source§impl Clone for MetricAlarm
impl Clone for MetricAlarm
Source§fn clone(&self) -> MetricAlarm
fn clone(&self) -> MetricAlarm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricAlarm
impl Debug for MetricAlarm
Source§impl<'de> Deserialize<'de> for MetricAlarm
impl<'de> Deserialize<'de> for MetricAlarm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetricAlarm
impl RefUnwindSafe for MetricAlarm
impl Send for MetricAlarm
impl Sync for MetricAlarm
impl Unpin for MetricAlarm
impl UnsafeUnpin for MetricAlarm
impl UnwindSafe for MetricAlarm
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
Mutably borrows from an owned value. Read more