Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.CostExplorer.GetAnomalies
Description
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.
Synopsis
- data GetAnomalies = GetAnomalies' {}
- newGetAnomalies :: AnomalyDateInterval -> GetAnomalies
- getAnomalies_feedback :: Lens' GetAnomalies (Maybe AnomalyFeedbackType)
- getAnomalies_maxResults :: Lens' GetAnomalies (Maybe Int)
- getAnomalies_monitorArn :: Lens' GetAnomalies (Maybe Text)
- getAnomalies_nextPageToken :: Lens' GetAnomalies (Maybe Text)
- getAnomalies_totalImpact :: Lens' GetAnomalies (Maybe TotalImpactFilter)
- getAnomalies_dateInterval :: Lens' GetAnomalies AnomalyDateInterval
- data GetAnomaliesResponse = GetAnomaliesResponse' {
- nextPageToken :: Maybe Text
- httpStatus :: Int
- anomalies :: [Anomaly]
- newGetAnomaliesResponse :: Int -> GetAnomaliesResponse
- getAnomaliesResponse_nextPageToken :: Lens' GetAnomaliesResponse (Maybe Text)
- getAnomaliesResponse_httpStatus :: Lens' GetAnomaliesResponse Int
- getAnomaliesResponse_anomalies :: Lens' GetAnomaliesResponse [Anomaly]
Creating a Request
data GetAnomalies Source #
See: newGetAnomalies
smart constructor.
Constructors
GetAnomalies' | |
Fields
|
Instances
Create a value of GetAnomalies
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetAnomalies
, getAnomalies_feedback
- Filters anomaly results by the feedback field on the anomaly object.
$sel:maxResults:GetAnomalies'
, getAnomalies_maxResults
- The number of entries a paginated response contains.
GetAnomalies
, getAnomalies_monitorArn
- Retrieves all of the cost anomalies detected for a specific cost anomaly
monitor Amazon Resource Name (ARN).
GetAnomalies
, getAnomalies_nextPageToken
- 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.
GetAnomalies
, getAnomalies_totalImpact
- Filters anomaly results by the total impact field on the anomaly object.
For example, you can filter anomalies GREATER_THAN 200.00
to retrieve
anomalies, with an estimated dollar impact greater than 200.
$sel:dateInterval:GetAnomalies'
, getAnomalies_dateInterval
- Assigns the start and end dates for retrieving cost anomalies. The
returned anomaly object will have an AnomalyEndDate
in the specified
time range.
Request Lenses
getAnomalies_feedback :: Lens' GetAnomalies (Maybe AnomalyFeedbackType) Source #
Filters anomaly results by the feedback field on the anomaly object.
getAnomalies_maxResults :: Lens' GetAnomalies (Maybe Int) Source #
The number of entries a paginated response contains.
getAnomalies_monitorArn :: Lens' GetAnomalies (Maybe Text) Source #
Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).
getAnomalies_nextPageToken :: Lens' GetAnomalies (Maybe Text) Source #
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.
getAnomalies_totalImpact :: Lens' GetAnomalies (Maybe TotalImpactFilter) Source #
Filters anomaly results by the total impact field on the anomaly object.
For example, you can filter anomalies GREATER_THAN 200.00
to retrieve
anomalies, with an estimated dollar impact greater than 200.
getAnomalies_dateInterval :: Lens' GetAnomalies AnomalyDateInterval Source #
Assigns the start and end dates for retrieving cost anomalies. The
returned anomaly object will have an AnomalyEndDate
in the specified
time range.
Destructuring the Response
data GetAnomaliesResponse Source #
See: newGetAnomaliesResponse
smart constructor.
Constructors
GetAnomaliesResponse' | |
Fields
|
Instances
newGetAnomaliesResponse Source #
Arguments
:: Int | |
-> GetAnomaliesResponse |
Create a value of GetAnomaliesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetAnomalies
, getAnomaliesResponse_nextPageToken
- 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.
$sel:httpStatus:GetAnomaliesResponse'
, getAnomaliesResponse_httpStatus
- The response's http status code.
$sel:anomalies:GetAnomaliesResponse'
, getAnomaliesResponse_anomalies
- A list of cost anomalies.
Response Lenses
getAnomaliesResponse_nextPageToken :: Lens' GetAnomaliesResponse (Maybe Text) Source #
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.
getAnomaliesResponse_httpStatus :: Lens' GetAnomaliesResponse Int Source #
The response's http status code.
getAnomaliesResponse_anomalies :: Lens' GetAnomaliesResponse [Anomaly] Source #
A list of cost anomalies.