pub struct DeleteAnomalyDetector { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteAnomalyDetector.
Deletes the specified anomaly detection model from your account. For more information about how to delete an anomaly detection model, see Deleting an anomaly detection model in the CloudWatch User Guide.
Implementations§
source§impl DeleteAnomalyDetector
impl DeleteAnomalyDetector
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteAnomalyDetector, AwsResponseRetryClassifier>, SdkError<DeleteAnomalyDetectorError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteAnomalyDetector, AwsResponseRetryClassifier>, SdkError<DeleteAnomalyDetectorError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteAnomalyDetectorOutput, SdkError<DeleteAnomalyDetectorError>>
pub async fn send(
self
) -> Result<DeleteAnomalyDetectorOutput, SdkError<DeleteAnomalyDetectorError>>
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 namespace(self, input: impl Into<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace associated with the anomaly detection model to delete.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace associated with the anomaly detection model to delete.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn metric_name(self, input: impl Into<String>) -> Self
The metric name associated with the anomaly detection model to delete.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn set_metric_name(self, input: Option<String>) -> Self
The metric name associated with the anomaly detection model to delete.
sourcepub fn dimensions(self, input: Dimension) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn dimensions(self, input: Dimension) -> Self
Appends an item to Dimensions.
To override the contents of this collection use set_dimensions.
The metric dimensions associated with the anomaly detection model to delete.
sourcepub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
The metric dimensions associated with the anomaly detection model to delete.
sourcepub fn stat(self, input: impl Into<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn stat(self, input: impl Into<String>) -> Self
The statistic associated with the anomaly detection model to delete.
sourcepub fn set_stat(self, input: Option<String>) -> Self
👎Deprecated: Use SingleMetricAnomalyDetector.
pub fn set_stat(self, input: Option<String>) -> Self
The statistic associated with the anomaly detection model to delete.
sourcepub fn single_metric_anomaly_detector(
self,
input: SingleMetricAnomalyDetector
) -> Self
pub fn single_metric_anomaly_detector(
self,
input: SingleMetricAnomalyDetector
) -> Self
A single metric anomaly detector to be deleted.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.
sourcepub fn set_single_metric_anomaly_detector(
self,
input: Option<SingleMetricAnomalyDetector>
) -> Self
pub fn set_single_metric_anomaly_detector(
self,
input: Option<SingleMetricAnomalyDetector>
) -> Self
A single metric anomaly detector to be deleted.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
MetricMathAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property.
sourcepub fn metric_math_anomaly_detector(
self,
input: MetricMathAnomalyDetector
) -> Self
pub fn metric_math_anomaly_detector(
self,
input: MetricMathAnomalyDetector
) -> Self
The metric math anomaly detector to be deleted.
When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.
sourcepub fn set_metric_math_anomaly_detector(
self,
input: Option<MetricMathAnomalyDetector>
) -> Self
pub fn set_metric_math_anomaly_detector(
self,
input: Option<MetricMathAnomalyDetector>
) -> Self
The metric math anomaly detector to be deleted.
When using MetricMathAnomalyDetector, you cannot include following parameters in the same operation:
-
Dimensions, -
MetricName -
Namespace -
Stat -
the
SingleMetricAnomalyDetectorparameters ofDeleteAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property.
Trait Implementations§
source§impl Clone for DeleteAnomalyDetector
impl Clone for DeleteAnomalyDetector
source§fn clone(&self) -> DeleteAnomalyDetector
fn clone(&self) -> DeleteAnomalyDetector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more