| 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 |
Amazonka.DevOpsGuru.ListInsights
Description
Returns a list of insights in your AWS account. You can specify which
insights are returned by their start time and status (ONGOING,
CLOSED, or ANY).
This operation returns paginated results.
Synopsis
- data ListInsights = ListInsights' {}
- newListInsights :: ListInsightsStatusFilter -> ListInsights
- listInsights_nextToken :: Lens' ListInsights (Maybe Text)
- listInsights_maxResults :: Lens' ListInsights (Maybe Natural)
- listInsights_statusFilter :: Lens' ListInsights ListInsightsStatusFilter
- data ListInsightsResponse = ListInsightsResponse' {}
- newListInsightsResponse :: Int -> ListInsightsResponse
- listInsightsResponse_reactiveInsights :: Lens' ListInsightsResponse (Maybe [ReactiveInsightSummary])
- listInsightsResponse_nextToken :: Lens' ListInsightsResponse (Maybe Text)
- listInsightsResponse_proactiveInsights :: Lens' ListInsightsResponse (Maybe [ProactiveInsightSummary])
- listInsightsResponse_httpStatus :: Lens' ListInsightsResponse Int
Creating a Request
data ListInsights Source #
See: newListInsights smart constructor.
Constructors
| ListInsights' | |
Fields
| |
Instances
Create a value of ListInsights 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:nextToken:ListInsights', listInsights_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:ListInsights', listInsights_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:statusFilter:ListInsights', listInsights_statusFilter - A filter used to filter the returned insights by their status. You can
specify one status filter.
Request Lenses
listInsights_nextToken :: Lens' ListInsights (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.
listInsights_maxResults :: Lens' ListInsights (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.
listInsights_statusFilter :: Lens' ListInsights ListInsightsStatusFilter Source #
A filter used to filter the returned insights by their status. You can specify one status filter.
Destructuring the Response
data ListInsightsResponse Source #
See: newListInsightsResponse smart constructor.
Constructors
| ListInsightsResponse' | |
Fields
| |
Instances
newListInsightsResponse Source #
Arguments
| :: Int | |
| -> ListInsightsResponse |
Create a value of ListInsightsResponse 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:reactiveInsights:ListInsightsResponse', listInsightsResponse_reactiveInsights - The returned list of reactive insights.
$sel:nextToken:ListInsights', listInsightsResponse_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:proactiveInsights:ListInsightsResponse', listInsightsResponse_proactiveInsights - The returned list of proactive insights.
$sel:httpStatus:ListInsightsResponse', listInsightsResponse_httpStatus - The response's http status code.
Response Lenses
listInsightsResponse_reactiveInsights :: Lens' ListInsightsResponse (Maybe [ReactiveInsightSummary]) Source #
The returned list of reactive insights.
listInsightsResponse_nextToken :: Lens' ListInsightsResponse (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.
listInsightsResponse_proactiveInsights :: Lens' ListInsightsResponse (Maybe [ProactiveInsightSummary]) Source #
The returned list of proactive insights.
listInsightsResponse_httpStatus :: Lens' ListInsightsResponse Int Source #
The response's http status code.