pub struct MetricAlarm {Show 28 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>,
pub state_manually_set: bool,
}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.
state_manually_set: boolWhether the current state was forced by SetAlarmState. AWS reverts a
manual state on the next evaluation, but the emulator keeps it sticky
(so it can be used to drive composite alarms) until real datapoints
arrive — at which point evaluation clears this and data governs the
state. It only suppresses the default missing-data INSUFFICIENT_DATA
transition, never a real threshold crossing.
Trait Implementations§
Source§impl Clone for MetricAlarm
impl Clone for MetricAlarm
Source§fn clone(&self) -> MetricAlarm
fn clone(&self) -> MetricAlarm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more