pub struct CloudWatchState {
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 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 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
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
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 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>
Trait Implementations§
Source§impl Clone for CloudWatchState
impl Clone for CloudWatchState
Source§fn clone(&self) -> CloudWatchState
fn clone(&self) -> CloudWatchState
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 CloudWatchState
impl Debug for CloudWatchState
Source§impl Default for CloudWatchState
impl Default for CloudWatchState
Source§fn default() -> CloudWatchState
fn default() -> CloudWatchState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudWatchState
impl<'de> Deserialize<'de> for CloudWatchState
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 CloudWatchState
impl RefUnwindSafe for CloudWatchState
impl Send for CloudWatchState
impl Sync for CloudWatchState
impl Unpin for CloudWatchState
impl UnsafeUnpin for CloudWatchState
impl UnwindSafe for CloudWatchState
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