Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves all of the cost anomalies detected on your account during the
time period that's specified by the DateInterval
object.
Synopsis
- data GetAnomalies = GetAnomalies' {}
- newGetAnomalies :: AnomalyDateInterval -> GetAnomalies
- getAnomalies_nextPageToken :: Lens' GetAnomalies (Maybe Text)
- getAnomalies_totalImpact :: Lens' GetAnomalies (Maybe TotalImpactFilter)
- getAnomalies_maxResults :: Lens' GetAnomalies (Maybe Int)
- getAnomalies_feedback :: Lens' GetAnomalies (Maybe AnomalyFeedbackType)
- getAnomalies_monitorArn :: Lens' GetAnomalies (Maybe Text)
- 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.
GetAnomalies' | |
|
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:
$sel:nextPageToken: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.
$sel:totalImpact: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:maxResults:GetAnomalies'
, getAnomalies_maxResults
- The number of entries a paginated response contains.
$sel:feedback:GetAnomalies'
, getAnomalies_feedback
- Filters anomaly results by the feedback field on the anomaly object.
$sel:monitorArn:GetAnomalies'
, getAnomalies_monitorArn
- Retrieves all of the cost anomalies detected for a specific cost anomaly
monitor Amazon Resource Name (ARN).
$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_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_maxResults :: Lens' GetAnomalies (Maybe Int) Source #
The number of entries a paginated response contains.
getAnomalies_feedback :: Lens' GetAnomalies (Maybe AnomalyFeedbackType) Source #
Filters anomaly results by the feedback field on the anomaly object.
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_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.
GetAnomaliesResponse' | |
|
Instances
newGetAnomaliesResponse Source #
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:
$sel:nextPageToken: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.