Struct aws_sdk_cloudwatchlogs::operation::update_anomaly::builders::UpdateAnomalyFluentBuilder
source · pub struct UpdateAnomalyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateAnomaly
.
Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern.
You must specify either anomalyId
or patternId
, but you can't specify both parameters in the same operation.
If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType
and suppressionPeriod
parameters.
Implementations§
source§impl UpdateAnomalyFluentBuilder
impl UpdateAnomalyFluentBuilder
sourcepub fn as_input(&self) -> &UpdateAnomalyInputBuilder
pub fn as_input(&self) -> &UpdateAnomalyInputBuilder
Access the UpdateAnomaly as a reference.
sourcepub async fn send(
self,
) -> Result<UpdateAnomalyOutput, SdkError<UpdateAnomalyError, HttpResponse>>
pub async fn send( self, ) -> Result<UpdateAnomalyOutput, SdkError<UpdateAnomalyError, 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<UpdateAnomalyOutput, UpdateAnomalyError, Self>
pub fn customize( self, ) -> CustomizableOperation<UpdateAnomalyOutput, UpdateAnomalyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn anomaly_id(self, input: impl Into<String>) -> Self
pub fn anomaly_id(self, input: impl Into<String>) -> Self
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn set_anomaly_id(self, input: Option<String>) -> Self
pub fn set_anomaly_id(self, input: Option<String>) -> Self
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn get_anomaly_id(&self) -> &Option<String>
pub fn get_anomaly_id(&self) -> &Option<String>
If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
sourcepub fn pattern_id(self, input: impl Into<String>) -> Self
pub fn pattern_id(self, input: impl Into<String>) -> Self
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn set_pattern_id(self, input: Option<String>) -> Self
pub fn set_pattern_id(self, input: Option<String>) -> Self
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn get_pattern_id(&self) -> &Option<String>
pub fn get_pattern_id(&self) -> &Option<String>
If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
sourcepub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
pub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
The ARN of the anomaly detector that this operation is to act on.
sourcepub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
pub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
The ARN of the anomaly detector that this operation is to act on.
sourcepub fn get_anomaly_detector_arn(&self) -> &Option<String>
pub fn get_anomaly_detector_arn(&self) -> &Option<String>
The ARN of the anomaly detector that this operation is to act on.
sourcepub fn suppression_type(self, input: SuppressionType) -> Self
pub fn suppression_type(self, input: SuppressionType) -> Self
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn set_suppression_type(self, input: Option<SuppressionType>) -> Self
pub fn set_suppression_type(self, input: Option<SuppressionType>) -> Self
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn get_suppression_type(&self) -> &Option<SuppressionType>
pub fn get_suppression_type(&self) -> &Option<SuppressionType>
Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED
, you must also specify a suppressionPeriod
. If you specify INFINITE
, any value for suppressionPeriod
is ignored.
sourcepub fn suppression_period(self, input: SuppressionPeriod) -> Self
pub fn suppression_period(self, input: SuppressionPeriod) -> Self
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
sourcepub fn set_suppression_period(self, input: Option<SuppressionPeriod>) -> Self
pub fn set_suppression_period(self, input: Option<SuppressionPeriod>) -> Self
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
sourcepub fn get_suppression_period(&self) -> &Option<SuppressionPeriod>
pub fn get_suppression_period(&self) -> &Option<SuppressionPeriod>
If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
Trait Implementations§
source§impl Clone for UpdateAnomalyFluentBuilder
impl Clone for UpdateAnomalyFluentBuilder
source§fn clone(&self) -> UpdateAnomalyFluentBuilder
fn clone(&self) -> UpdateAnomalyFluentBuilder
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 UpdateAnomalyFluentBuilder
impl !RefUnwindSafe for UpdateAnomalyFluentBuilder
impl Send for UpdateAnomalyFluentBuilder
impl Sync for UpdateAnomalyFluentBuilder
impl Unpin for UpdateAnomalyFluentBuilder
impl !UnwindSafe for UpdateAnomalyFluentBuilder
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