list_anomalies
async
¶
list_anomalies(
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
anomaly_detector_arn: Optional[AnomalyDetectorArn] = None,
suppression_state: Optional[SuppressionState] = None,
limit: Optional[ListAnomaliesLimit] = None,
next_token: Optional[NextToken] = None,
) -> ListAnomaliesResponse
Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of each anomaly object that is returned, see the example in this section.
Parameters:
-
anomaly_detector_arn(Optional[AnomalyDetectorArn], default:None) –Use this to optionally limit the results to only the anomalies found by a certain anomaly detector.
-
suppression_state(Optional[SuppressionState], default:None) –You can specify this parameter if you want to the operation to return only anomalies that are currently either suppressed or unsuppressed.
-
limit(Optional[ListAnomaliesLimit], default:None) –The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.
Raises:
-
InvalidParameterException–A parameter is specified incorrectly.
-
OperationAbortedException–Multiple concurrent requests to update the same resource were in conflict.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service cannot complete the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 | |