pub struct DescribeAlarmHistory<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeAlarmHistory
.
Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned.
CloudWatch retains the history of an alarm even if you delete the alarm.
To use this operation and return information about a composite alarm, you must be signed on with the cloudwatch:DescribeAlarmHistory
permission that is scoped to *
. You can't return information about composite alarms if your cloudwatch:DescribeAlarmHistory
permission has a narrower scope.
Implementations
impl<C, M, R> DescribeAlarmHistory<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DescribeAlarmHistory<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DescribeAlarmHistoryOutput, SdkError<DescribeAlarmHistoryError>> where
R::Policy: SmithyRetryPolicy<DescribeAlarmHistoryInputOperationOutputAlias, DescribeAlarmHistoryOutput, DescribeAlarmHistoryError, DescribeAlarmHistoryInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DescribeAlarmHistoryOutput, SdkError<DescribeAlarmHistoryError>> where
R::Policy: SmithyRetryPolicy<DescribeAlarmHistoryInputOperationOutputAlias, DescribeAlarmHistoryOutput, DescribeAlarmHistoryError, DescribeAlarmHistoryInputOperationRetryAlias>,
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.
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
The name of the alarm.
The name of the alarm.
Appends an item to AlarmTypes
.
To override the contents of this collection use set_alarm_types
.
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
The type of alarm histories to retrieve.
The type of alarm histories to retrieve.
The starting date to retrieve alarm history.
The starting date to retrieve alarm history.
The ending date to retrieve alarm history.
The maximum number of alarm history records to retrieve.
The maximum number of alarm history records to retrieve.
The token returned by a previous call to indicate that there is more data available.
The token returned by a previous call to indicate that there is more data available.
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to have the newest event history returned first, and specify TimestampAscending
to have the oldest history returned first.
Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending
to have the newest event history returned first, and specify TimestampAscending
to have the oldest history returned first.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DescribeAlarmHistory<C, M, R>
impl<C, M, R> Send for DescribeAlarmHistory<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DescribeAlarmHistory<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DescribeAlarmHistory<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DescribeAlarmHistory<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more