CloudWatchClient.describe_anomaly_detectors
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import CloudWatchClient
from collections.abc import Sequence
from rboto_cloudwatch.types import (
AnomalyDetectorType,
DescribeAnomalyDetectorsOutput,
Dimension,
)
Signature
async def describe_anomaly_detectors(
*,
anomaly_detector_ids: Sequence[str] | None = None,
next_token: str | None = None,
max_results: int | None = None,
namespace: str | None = None,
metric_name: str | None = None,
dimensions: Sequence[Dimension] | None = None,
anomaly_detector_types: Sequence[AnomalyDetectorType] | None = None,
) -> DescribeAnomalyDetectorsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
anomaly_detector_ids |
No | Specifies the unique identifiers of the anomaly detectors to describe. You can specify up to 50 identifiers. If you specify this parameter, you cannot also specify the Namespace , MetricName , Dimensions , or AnomalyDetectorTypes metric filters. |
next_token |
No | Use the token returned by the previous operation to request the next page of results. |
max_results |
No | 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. |
namespace |
No | Limits the results to only the anomaly detection models that are associated with the specified namespace. |
metric_name |
No | 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. |
dimensions |
No | 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. |
anomaly_detector_types |
No | The anomaly detector types to request when using DescribeAnomalyDetectorsInput . If empty, defaults to SINGLE_METRIC . |
Output
DescribeAnomalyDetectorsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
anomaly_detectors |
list[AnomalyDetectorOutput] | None |
Always present | AnomalyDetectorOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
AnomalyDetectorType, DescribeAnomalyDetectorsOutput, Dimension
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.describe_anomaly_detectors(...) accepts the same arguments and returns AsyncIterator[DescribeAnomalyDetectorsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
InternalServiceFaultError, InvalidNextTokenError, InvalidParameterCombinationError, InvalidParameterValueError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.