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 |
Returns a list of the anomalies that belong to an insight that you specify using its ID.
This operation returns paginated results.
Synopsis
- data ListAnomaliesForInsight = ListAnomaliesForInsight' {}
- newListAnomaliesForInsight :: Text -> ListAnomaliesForInsight
- listAnomaliesForInsight_startTimeRange :: Lens' ListAnomaliesForInsight (Maybe StartTimeRange)
- listAnomaliesForInsight_nextToken :: Lens' ListAnomaliesForInsight (Maybe Text)
- listAnomaliesForInsight_maxResults :: Lens' ListAnomaliesForInsight (Maybe Natural)
- listAnomaliesForInsight_insightId :: Lens' ListAnomaliesForInsight Text
- data ListAnomaliesForInsightResponse = ListAnomaliesForInsightResponse' {}
- newListAnomaliesForInsightResponse :: Int -> ListAnomaliesForInsightResponse
- listAnomaliesForInsightResponse_proactiveAnomalies :: Lens' ListAnomaliesForInsightResponse (Maybe [ProactiveAnomalySummary])
- listAnomaliesForInsightResponse_nextToken :: Lens' ListAnomaliesForInsightResponse (Maybe Text)
- listAnomaliesForInsightResponse_reactiveAnomalies :: Lens' ListAnomaliesForInsightResponse (Maybe [ReactiveAnomalySummary])
- listAnomaliesForInsightResponse_httpStatus :: Lens' ListAnomaliesForInsightResponse Int
Creating a Request
data ListAnomaliesForInsight Source #
See: newListAnomaliesForInsight
smart constructor.
ListAnomaliesForInsight' | |
|
Instances
newListAnomaliesForInsight Source #
Create a value of ListAnomaliesForInsight
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:startTimeRange:ListAnomaliesForInsight'
, listAnomaliesForInsight_startTimeRange
- A time range used to specify when the requested anomalies started. All
returned anomalies started during this time range.
$sel:nextToken:ListAnomaliesForInsight'
, listAnomaliesForInsight_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If this value is null, it retrieves the first page.
$sel:maxResults:ListAnomaliesForInsight'
, listAnomaliesForInsight_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
$sel:insightId:ListAnomaliesForInsight'
, listAnomaliesForInsight_insightId
- The ID of the insight. The returned anomalies belong to this insight.
Request Lenses
listAnomaliesForInsight_startTimeRange :: Lens' ListAnomaliesForInsight (Maybe StartTimeRange) Source #
A time range used to specify when the requested anomalies started. All returned anomalies started during this time range.
listAnomaliesForInsight_nextToken :: Lens' ListAnomaliesForInsight (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
listAnomaliesForInsight_maxResults :: Lens' ListAnomaliesForInsight (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
listAnomaliesForInsight_insightId :: Lens' ListAnomaliesForInsight Text Source #
The ID of the insight. The returned anomalies belong to this insight.
Destructuring the Response
data ListAnomaliesForInsightResponse Source #
See: newListAnomaliesForInsightResponse
smart constructor.
ListAnomaliesForInsightResponse' | |
|
Instances
newListAnomaliesForInsightResponse Source #
Create a value of ListAnomaliesForInsightResponse
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:proactiveAnomalies:ListAnomaliesForInsightResponse'
, listAnomaliesForInsightResponse_proactiveAnomalies
- An array of ProactiveAnomalySummary
objects that represent the
requested anomalies
$sel:nextToken:ListAnomaliesForInsight'
, listAnomaliesForInsightResponse_nextToken
- The pagination token to use to retrieve the next page of results for
this operation. If there are no more pages, this value is null.
$sel:reactiveAnomalies:ListAnomaliesForInsightResponse'
, listAnomaliesForInsightResponse_reactiveAnomalies
- An array of ReactiveAnomalySummary
objects that represent the
requested anomalies
$sel:httpStatus:ListAnomaliesForInsightResponse'
, listAnomaliesForInsightResponse_httpStatus
- The response's http status code.
Response Lenses
listAnomaliesForInsightResponse_proactiveAnomalies :: Lens' ListAnomaliesForInsightResponse (Maybe [ProactiveAnomalySummary]) Source #
An array of ProactiveAnomalySummary
objects that represent the
requested anomalies
listAnomaliesForInsightResponse_nextToken :: Lens' ListAnomaliesForInsightResponse (Maybe Text) Source #
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
listAnomaliesForInsightResponse_reactiveAnomalies :: Lens' ListAnomaliesForInsightResponse (Maybe [ReactiveAnomalySummary]) Source #
An array of ReactiveAnomalySummary
objects that represent the
requested anomalies
listAnomaliesForInsightResponse_httpStatus :: Lens' ListAnomaliesForInsightResponse Int Source #
The response's http status code.