pub struct CloudWatchState {Show 14 fields
pub account_id: String,
pub metrics: BTreeMap<String, BTreeMap<String, Vec<MetricDatum>>>,
pub alarms: BTreeMap<String, BTreeMap<String, MetricAlarm>>,
pub composite_alarms: BTreeMap<String, BTreeMap<String, CompositeAlarm>>,
pub alarm_history: BTreeMap<String, BTreeMap<String, Vec<AlarmHistoryItem>>>,
pub dashboards: BTreeMap<String, Dashboard>,
pub anomaly_detectors: BTreeMap<String, BTreeMap<String, AnomalyDetector>>,
pub insight_rules: BTreeMap<String, BTreeMap<String, InsightRule>>,
pub managed_rules: BTreeMap<String, BTreeMap<String, Vec<ManagedRule>>>,
pub metric_streams: BTreeMap<String, BTreeMap<String, MetricStream>>,
pub mute_rules: BTreeMap<String, BTreeMap<String, AlarmMuteRule>>,
pub datasets: BTreeMap<String, BTreeMap<String, Dataset>>,
pub tags: BTreeMap<String, BTreeMap<String, String>>,
pub otel_enrichment_running: bool,
}Fields§
§account_id: String§metrics: BTreeMap<String, BTreeMap<String, Vec<MetricDatum>>>region -> namespace -> Vec
alarms: BTreeMap<String, BTreeMap<String, MetricAlarm>>region -> alarm_name -> MetricAlarm
composite_alarms: BTreeMap<String, BTreeMap<String, CompositeAlarm>>region -> alarm_name -> CompositeAlarm
alarm_history: BTreeMap<String, BTreeMap<String, Vec<AlarmHistoryItem>>>region -> alarm_name -> history items (newest appended last). Populated by PutMetricAlarm (ConfigurationUpdate), SetAlarmState (StateUpdate) and DeleteAlarms so DescribeAlarmHistory reflects real transitions.
dashboards: BTreeMap<String, Dashboard>Dashboards keyed by name (CloudWatch dashboards are global per account, not regional).
anomaly_detectors: BTreeMap<String, BTreeMap<String, AnomalyDetector>>region -> (namespace, metric, stat, dims) key -> AnomalyDetector
insight_rules: BTreeMap<String, BTreeMap<String, InsightRule>>region -> rule_name -> InsightRule
managed_rules: BTreeMap<String, BTreeMap<String, Vec<ManagedRule>>>region -> resource_arn -> Vec
metric_streams: BTreeMap<String, BTreeMap<String, MetricStream>>region -> stream_name -> MetricStream
mute_rules: BTreeMap<String, BTreeMap<String, AlarmMuteRule>>region -> rule_name -> AlarmMuteRule
datasets: BTreeMap<String, BTreeMap<String, Dataset>>region -> dataset_identifier -> Dataset (KMS key association)
resource_arn -> tag_key -> tag_value (tags are account-global by ARN)
otel_enrichment_running: boolOTel enrichment is on when true (per account).
Implementations§
Source§impl CloudWatchState
impl CloudWatchState
pub fn new(account_id: &str) -> Self
pub fn metrics_in( &self, region: &str, ) -> Option<&BTreeMap<String, Vec<MetricDatum>>>
pub fn metrics_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, Vec<MetricDatum>>
pub fn alarms_in(&self, region: &str) -> Option<&BTreeMap<String, MetricAlarm>>
pub fn alarms_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, MetricAlarm>
pub fn composite_alarms_in( &self, region: &str, ) -> Option<&BTreeMap<String, CompositeAlarm>>
pub fn composite_alarms_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, CompositeAlarm>
pub fn alarm_history_in( &self, region: &str, ) -> Option<&BTreeMap<String, Vec<AlarmHistoryItem>>>
pub fn alarm_history_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, Vec<AlarmHistoryItem>>
pub fn anomaly_detectors_in( &self, region: &str, ) -> Option<&BTreeMap<String, AnomalyDetector>>
pub fn anomaly_detectors_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, AnomalyDetector>
pub fn insight_rules_in( &self, region: &str, ) -> Option<&BTreeMap<String, InsightRule>>
pub fn insight_rules_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, InsightRule>
pub fn managed_rules_in( &self, region: &str, ) -> Option<&BTreeMap<String, Vec<ManagedRule>>>
pub fn managed_rules_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, Vec<ManagedRule>>
pub fn metric_streams_in( &self, region: &str, ) -> Option<&BTreeMap<String, MetricStream>>
pub fn metric_streams_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, MetricStream>
pub fn mute_rules_in( &self, region: &str, ) -> Option<&BTreeMap<String, AlarmMuteRule>>
pub fn mute_rules_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, AlarmMuteRule>
pub fn datasets_in(&self, region: &str) -> Option<&BTreeMap<String, Dataset>>
pub fn datasets_in_mut( &mut self, region: &str, ) -> &mut BTreeMap<String, Dataset>
Trait Implementations§
Source§impl Clone for CloudWatchState
impl Clone for CloudWatchState
Source§fn clone(&self) -> CloudWatchState
fn clone(&self) -> CloudWatchState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more