pub struct CloudWatchState {Show 17 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 log_alarms: BTreeMap<String, BTreeMap<String, LogAlarm>>,
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,
pub otel_enrichment: OTelEnrichmentConfig,
pub resource_metrics_configurations: BTreeMap<String, BTreeMap<String, ResourceMetricsConfiguration>>,
}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
log_alarms: BTreeMap<String, BTreeMap<String, LogAlarm>>region -> alarm_name -> LogAlarm
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).
otel_enrichment: OTelEnrichmentConfigFilters and timestamps stored while OTel enrichment is running.
resource_metrics_configurations: BTreeMap<String, BTreeMap<String, ResourceMetricsConfiguration>>region -> resource_arn -> ResourceMetricsConfiguration