#[non_exhaustive]pub struct AwsCloudWatchAlarmDetails { /* private fields */ }
Expand description
Specifies an alarm and associates it with the specified metric or metric math expression.
Implementations
sourceimpl AwsCloudWatchAlarmDetails
impl AwsCloudWatchAlarmDetails
sourcepub fn actions_enabled(&self) -> bool
pub fn actions_enabled(&self) -> bool
Indicates whether actions should be executed during any changes to the alarm state.
sourcepub fn alarm_actions(&self) -> Option<&[String]>
pub fn alarm_actions(&self) -> Option<&[String]>
The list of actions, specified as Amazon Resource Names (ARNs) to execute when this alarm transitions into an ALARM
state from any other state.
sourcepub fn alarm_configuration_updated_timestamp(&self) -> Option<&str>
pub fn alarm_configuration_updated_timestamp(&self) -> Option<&str>
The time stamp of the last update to the alarm configuration.
sourcepub fn alarm_description(&self) -> Option<&str>
pub fn alarm_description(&self) -> Option<&str>
The description of the alarm.
sourcepub fn alarm_name(&self) -> Option<&str>
pub fn alarm_name(&self) -> Option<&str>
The name of the alarm. If you don't specify a name, CloudFront generates a unique physical ID and uses that ID for the alarm name.
sourcepub fn comparison_operator(&self) -> Option<&str>
pub fn comparison_operator(&self) -> Option<&str>
The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
sourcepub fn datapoints_to_alarm(&self) -> i32
pub fn datapoints_to_alarm(&self) -> i32
The number of datapoints that must be breaching to trigger the alarm.
sourcepub fn dimensions(&self) -> Option<&[AwsCloudWatchAlarmDimensionsDetails]>
pub fn dimensions(&self) -> Option<&[AwsCloudWatchAlarmDimensionsDetails]>
The dimensions for the metric associated with the alarm.
sourcepub fn evaluate_low_sample_count_percentile(&self) -> Option<&str>
pub fn evaluate_low_sample_count_percentile(&self) -> Option<&str>
Used only for alarms based on percentiles. If ignore
, the alarm state does not change during periods with too few data points to be statistically significant. If evaluate
or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
sourcepub fn evaluation_periods(&self) -> i32
pub fn evaluation_periods(&self) -> i32
The number of periods over which data is compared to the specified threshold.
sourcepub fn extended_statistic(&self) -> Option<&str>
pub fn extended_statistic(&self) -> Option<&str>
The percentile statistic for the metric associated with the alarm.
sourcepub fn insufficient_data_actions(&self) -> Option<&[String]>
pub fn insufficient_data_actions(&self) -> Option<&[String]>
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA
state from any other state. Each action is specified as an ARN.
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use Metrics
instead and you can't specify MetricName
.
sourcepub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify Namespace
and you use Metrics
instead.
sourcepub fn ok_actions(&self) -> Option<&[String]>
pub fn ok_actions(&self) -> Option<&[String]>
The actions to execute when this alarm transitions to the OK
state from any other state. Each action is specified as an ARN.
sourcepub fn period(&self) -> i32
pub fn period(&self) -> i32
The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric.
sourcepub fn statistic(&self) -> Option<&str>
pub fn statistic(&self) -> Option<&str>
The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ExtendedStatistic
.
For an alarm based on a metric, you must specify either Statistic
or ExtendedStatistic
but not both.
For an alarm based on a math expression, you can't specify Statistic
. Instead, you use Metrics
.
sourcepub fn threshold_metric_id(&self) -> Option<&str>
pub fn threshold_metric_id(&self) -> Option<&str>
n an alarm based on an anomaly detection model, this is the ID of the ANOMALY_DETECTION_BAND
function used as the threshold for the alarm.
sourcepub fn treat_missing_data(&self) -> Option<&str>
pub fn treat_missing_data(&self) -> Option<&str>
Sets how this alarm is to handle missing data points.
sourceimpl AwsCloudWatchAlarmDetails
impl AwsCloudWatchAlarmDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsCloudWatchAlarmDetails
.
Trait Implementations
sourceimpl Clone for AwsCloudWatchAlarmDetails
impl Clone for AwsCloudWatchAlarmDetails
sourcefn clone(&self) -> AwsCloudWatchAlarmDetails
fn clone(&self) -> AwsCloudWatchAlarmDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AwsCloudWatchAlarmDetails
impl Debug for AwsCloudWatchAlarmDetails
sourceimpl PartialEq<AwsCloudWatchAlarmDetails> for AwsCloudWatchAlarmDetails
impl PartialEq<AwsCloudWatchAlarmDetails> for AwsCloudWatchAlarmDetails
sourcefn eq(&self, other: &AwsCloudWatchAlarmDetails) -> bool
fn eq(&self, other: &AwsCloudWatchAlarmDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AwsCloudWatchAlarmDetails) -> bool
fn ne(&self, other: &AwsCloudWatchAlarmDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for AwsCloudWatchAlarmDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsCloudWatchAlarmDetails
impl Send for AwsCloudWatchAlarmDetails
impl Sync for AwsCloudWatchAlarmDetails
impl Unpin for AwsCloudWatchAlarmDetails
impl UnwindSafe for AwsCloudWatchAlarmDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more