Struct aws_sdk_cloudwatch::operation::describe_alarms_for_metric::builders::DescribeAlarmsForMetricFluentBuilder
source · pub struct DescribeAlarmsForMetricFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeAlarmsForMetric
.
Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.
This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.
Implementations§
source§impl DescribeAlarmsForMetricFluentBuilder
impl DescribeAlarmsForMetricFluentBuilder
sourcepub fn as_input(&self) -> &DescribeAlarmsForMetricInputBuilder
pub fn as_input(&self) -> &DescribeAlarmsForMetricInputBuilder
Access the DescribeAlarmsForMetric as a reference.
sourcepub async fn send(
self
) -> Result<DescribeAlarmsForMetricOutput, SdkError<DescribeAlarmsForMetricError, HttpResponse>>
pub async fn send( self ) -> Result<DescribeAlarmsForMetricOutput, SdkError<DescribeAlarmsForMetricError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DescribeAlarmsForMetricOutput, DescribeAlarmsForMetricError, Self>
pub fn customize( self ) -> CustomizableOperation<DescribeAlarmsForMetricOutput, DescribeAlarmsForMetricError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
The name of the metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
The name of the metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
The name of the metric.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the metric.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the metric.
sourcepub fn statistic(self, input: Statistic) -> Self
pub fn statistic(self, input: Statistic) -> Self
The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics
.
sourcepub fn set_statistic(self, input: Option<Statistic>) -> Self
pub fn set_statistic(self, input: Option<Statistic>) -> Self
The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics
.
sourcepub fn get_statistic(&self) -> &Option<Statistic>
pub fn get_statistic(&self) -> &Option<Statistic>
The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics
.
sourcepub fn extended_statistic(self, input: impl Into<String>) -> Self
pub fn extended_statistic(self, input: impl Into<String>) -> Self
The percentile statistic for the metric. Specify a value between p0.0 and p100.
sourcepub fn set_extended_statistic(self, input: Option<String>) -> Self
pub fn set_extended_statistic(self, input: Option<String>) -> Self
The percentile statistic for the metric. Specify a value between p0.0 and p100.
sourcepub fn get_extended_statistic(&self) -> &Option<String>
pub fn get_extended_statistic(&self) -> &Option<String>
The percentile statistic for the metric. Specify a value between p0.0 and p100.
sourcepub fn dimensions(self, input: Dimension) -> Self
pub fn dimensions(self, input: Dimension) -> Self
Appends an item to Dimensions
.
To override the contents of this collection use set_dimensions
.
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
sourcepub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
pub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
sourcepub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
pub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
sourcepub fn period(self, input: i32) -> Self
pub fn period(self, input: i32) -> Self
The period, in seconds, over which the statistic is applied.
sourcepub fn set_period(self, input: Option<i32>) -> Self
pub fn set_period(self, input: Option<i32>) -> Self
The period, in seconds, over which the statistic is applied.
sourcepub fn get_period(&self) -> &Option<i32>
pub fn get_period(&self) -> &Option<i32>
The period, in seconds, over which the statistic is applied.
sourcepub fn unit(self, input: StandardUnit) -> Self
pub fn unit(self, input: StandardUnit) -> Self
The unit for the metric.
sourcepub fn set_unit(self, input: Option<StandardUnit>) -> Self
pub fn set_unit(self, input: Option<StandardUnit>) -> Self
The unit for the metric.
sourcepub fn get_unit(&self) -> &Option<StandardUnit>
pub fn get_unit(&self) -> &Option<StandardUnit>
The unit for the metric.
Trait Implementations§
source§impl Clone for DescribeAlarmsForMetricFluentBuilder
impl Clone for DescribeAlarmsForMetricFluentBuilder
source§fn clone(&self) -> DescribeAlarmsForMetricFluentBuilder
fn clone(&self) -> DescribeAlarmsForMetricFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DescribeAlarmsForMetricFluentBuilder
impl !RefUnwindSafe for DescribeAlarmsForMetricFluentBuilder
impl Send for DescribeAlarmsForMetricFluentBuilder
impl Sync for DescribeAlarmsForMetricFluentBuilder
impl Unpin for DescribeAlarmsForMetricFluentBuilder
impl !UnwindSafe for DescribeAlarmsForMetricFluentBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more