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 the summaries of all insights in the specified group matching the provided filter values.
Synopsis
- data GetInsightSummaries = GetInsightSummaries' {}
- newGetInsightSummaries :: UTCTime -> UTCTime -> GetInsightSummaries
- getInsightSummaries_states :: Lens' GetInsightSummaries (Maybe [InsightState])
- getInsightSummaries_nextToken :: Lens' GetInsightSummaries (Maybe Text)
- getInsightSummaries_groupARN :: Lens' GetInsightSummaries (Maybe Text)
- getInsightSummaries_groupName :: Lens' GetInsightSummaries (Maybe Text)
- getInsightSummaries_maxResults :: Lens' GetInsightSummaries (Maybe Natural)
- getInsightSummaries_startTime :: Lens' GetInsightSummaries UTCTime
- getInsightSummaries_endTime :: Lens' GetInsightSummaries UTCTime
- data GetInsightSummariesResponse = GetInsightSummariesResponse' {}
- newGetInsightSummariesResponse :: Int -> GetInsightSummariesResponse
- getInsightSummariesResponse_insightSummaries :: Lens' GetInsightSummariesResponse (Maybe [InsightSummary])
- getInsightSummariesResponse_nextToken :: Lens' GetInsightSummariesResponse (Maybe Text)
- getInsightSummariesResponse_httpStatus :: Lens' GetInsightSummariesResponse Int
Creating a Request
data GetInsightSummaries Source #
See: newGetInsightSummaries
smart constructor.
GetInsightSummaries' | |
|
Instances
newGetInsightSummaries Source #
:: UTCTime | |
-> UTCTime | |
-> GetInsightSummaries |
Create a value of GetInsightSummaries
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:states:GetInsightSummaries'
, getInsightSummaries_states
- The list of insight states.
$sel:nextToken:GetInsightSummaries'
, getInsightSummaries_nextToken
- Pagination token.
$sel:groupARN:GetInsightSummaries'
, getInsightSummaries_groupARN
- The Amazon Resource Name (ARN) of the group. Required if the GroupName
isn't provided.
$sel:groupName:GetInsightSummaries'
, getInsightSummaries_groupName
- The name of the group. Required if the GroupARN isn't provided.
$sel:maxResults:GetInsightSummaries'
, getInsightSummaries_maxResults
- The maximum number of results to display.
$sel:startTime:GetInsightSummaries'
, getInsightSummaries_startTime
- The beginning of the time frame in which the insights started. The start
time can't be more than 30 days old.
$sel:endTime:GetInsightSummaries'
, getInsightSummaries_endTime
- The end of the time frame in which the insights ended. The end time
can't be more than 30 days old.
Request Lenses
getInsightSummaries_states :: Lens' GetInsightSummaries (Maybe [InsightState]) Source #
The list of insight states.
getInsightSummaries_nextToken :: Lens' GetInsightSummaries (Maybe Text) Source #
Pagination token.
getInsightSummaries_groupARN :: Lens' GetInsightSummaries (Maybe Text) Source #
The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't provided.
getInsightSummaries_groupName :: Lens' GetInsightSummaries (Maybe Text) Source #
The name of the group. Required if the GroupARN isn't provided.
getInsightSummaries_maxResults :: Lens' GetInsightSummaries (Maybe Natural) Source #
The maximum number of results to display.
getInsightSummaries_startTime :: Lens' GetInsightSummaries UTCTime Source #
The beginning of the time frame in which the insights started. The start time can't be more than 30 days old.
getInsightSummaries_endTime :: Lens' GetInsightSummaries UTCTime Source #
The end of the time frame in which the insights ended. The end time can't be more than 30 days old.
Destructuring the Response
data GetInsightSummariesResponse Source #
See: newGetInsightSummariesResponse
smart constructor.
GetInsightSummariesResponse' | |
|
Instances
newGetInsightSummariesResponse Source #
Create a value of GetInsightSummariesResponse
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:insightSummaries:GetInsightSummariesResponse'
, getInsightSummariesResponse_insightSummaries
- The summary of each insight within the group matching the provided
filters. The summary contains the InsightID, start and end time, the
root cause service, the root cause and client impact statistics, the top
anomalous services, and the status of the insight.
$sel:nextToken:GetInsightSummaries'
, getInsightSummariesResponse_nextToken
- Pagination token.
$sel:httpStatus:GetInsightSummariesResponse'
, getInsightSummariesResponse_httpStatus
- The response's http status code.
Response Lenses
getInsightSummariesResponse_insightSummaries :: Lens' GetInsightSummariesResponse (Maybe [InsightSummary]) Source #
The summary of each insight within the group matching the provided filters. The summary contains the InsightID, start and end time, the root cause service, the root cause and client impact statistics, the top anomalous services, and the status of the insight.
getInsightSummariesResponse_nextToken :: Lens' GetInsightSummariesResponse (Maybe Text) Source #
Pagination token.
getInsightSummariesResponse_httpStatus :: Lens' GetInsightSummariesResponse Int Source #
The response's http status code.