get_anomalies
async
¶
get_anomalies(
date_interval: AnomalyDateInterval,
*,
config_overrides: Optional[AsyncCostExplorerClientConfig] = None,
monitor_arn: Optional[GenericString] = None,
feedback: Optional[AnomalyFeedbackType] = None,
total_impact: Optional[TotalImpactFilter] = None,
next_page_token: Optional[NextPageToken] = None,
max_results: Optional[PageSize] = None,
) -> GetAnomaliesResponse
Retrieves all of the cost anomalies detected on your account during the time period that's specified by the DateInterval object. Anomalies are available for up to 90 days.
Parameters:
-
monitor_arn(Optional[GenericString], default:None) –Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).
-
date_interval(AnomalyDateInterval) –Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an
AnomalyEndDatein the specified time range. -
feedback(Optional[AnomalyFeedbackType], default:None) –Filters anomaly results by the feedback field on the anomaly object.
-
total_impact(Optional[TotalImpactFilter], default:None) –Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies
GREATER_THAN 200.00to retrieve anomalies, with an estimated dollar impact greater than 200. -
next_page_token(Optional[NextPageToken], default:None) –The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
-
max_results(Optional[PageSize], default:None) –The number of entries a paginated response contains.
Raises:
-
InvalidNextTokenException–The pagination token is invalid. Try again without a pagination token.
-
LimitExceededException–You made too many calls in a short period of time. Try again later.
-
UnknownServiceError–The service returned an error code this client does not model.