Struct aws_sdk_cloudwatch::operation::describe_anomaly_detectors::builders::DescribeAnomalyDetectorsFluentBuilder
source · pub struct DescribeAnomalyDetectorsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeAnomalyDetectors
.
Lists the anomaly detection models that you have created in your account. For single metric anomaly detectors, you can list all of the models in your account or filter the results to only the models that are related to a certain namespace, metric name, or metric dimension. For metric math anomaly detectors, you can list them by adding METRIC_MATH
to the AnomalyDetectorTypes
array. This will return all metric math anomaly detectors in your account.
Implementations§
source§impl DescribeAnomalyDetectorsFluentBuilder
impl DescribeAnomalyDetectorsFluentBuilder
sourcepub fn as_input(&self) -> &DescribeAnomalyDetectorsInputBuilder
pub fn as_input(&self) -> &DescribeAnomalyDetectorsInputBuilder
Access the DescribeAnomalyDetectors as a reference.
sourcepub async fn send(
self
) -> Result<DescribeAnomalyDetectorsOutput, SdkError<DescribeAnomalyDetectorsError, HttpResponse>>
pub async fn send( self ) -> Result<DescribeAnomalyDetectorsOutput, SdkError<DescribeAnomalyDetectorsError, 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<DescribeAnomalyDetectorsOutput, DescribeAnomalyDetectorsError, Self>
pub fn customize( self ) -> CustomizableOperation<DescribeAnomalyDetectorsOutput, DescribeAnomalyDetectorsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> DescribeAnomalyDetectorsPaginator
pub fn into_paginator(self) -> DescribeAnomalyDetectorsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
Use the token returned by the previous operation to request the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
Use the token returned by the previous operation to request the next page of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
Use the token returned by the previous operation to request the next page of results.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return in one operation. The maximum value that you can specify is 100.
To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return in one operation. The maximum value that you can specify is 100.
To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results to return in one operation. The maximum value that you can specify is 100.
To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
Limits the results to only the anomaly detection models that are associated with the specified namespace.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
Limits the results to only the anomaly detection models that are associated with the specified namespace.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
Limits the results to only the anomaly detection models that are associated with the specified namespace.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
Limits the results to only the anomaly detection models that are associated with the specified metric name. If there are multiple metrics with this name in different namespaces that have anomaly detection models, they're all returned.
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
.
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
sourcepub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
pub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
sourcepub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
pub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
Limits the results to only the anomaly detection models that are associated with the specified metric dimensions. If there are multiple metrics that have these dimensions and have anomaly detection models associated, they're all returned.
sourcepub fn anomaly_detector_types(self, input: AnomalyDetectorType) -> Self
pub fn anomaly_detector_types(self, input: AnomalyDetectorType) -> Self
Appends an item to AnomalyDetectorTypes
.
To override the contents of this collection use set_anomaly_detector_types
.
The anomaly detector types to request when using DescribeAnomalyDetectorsInput
. If empty, defaults to SINGLE_METRIC
.
sourcepub fn set_anomaly_detector_types(
self,
input: Option<Vec<AnomalyDetectorType>>
) -> Self
pub fn set_anomaly_detector_types( self, input: Option<Vec<AnomalyDetectorType>> ) -> Self
The anomaly detector types to request when using DescribeAnomalyDetectorsInput
. If empty, defaults to SINGLE_METRIC
.
sourcepub fn get_anomaly_detector_types(&self) -> &Option<Vec<AnomalyDetectorType>>
pub fn get_anomaly_detector_types(&self) -> &Option<Vec<AnomalyDetectorType>>
The anomaly detector types to request when using DescribeAnomalyDetectorsInput
. If empty, defaults to SINGLE_METRIC
.
Trait Implementations§
source§impl Clone for DescribeAnomalyDetectorsFluentBuilder
impl Clone for DescribeAnomalyDetectorsFluentBuilder
source§fn clone(&self) -> DescribeAnomalyDetectorsFluentBuilder
fn clone(&self) -> DescribeAnomalyDetectorsFluentBuilder
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 DescribeAnomalyDetectorsFluentBuilder
impl !RefUnwindSafe for DescribeAnomalyDetectorsFluentBuilder
impl Send for DescribeAnomalyDetectorsFluentBuilder
impl Sync for DescribeAnomalyDetectorsFluentBuilder
impl Unpin for DescribeAnomalyDetectorsFluentBuilder
impl !UnwindSafe for DescribeAnomalyDetectorsFluentBuilder
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