| 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.DevOpsGuru.ListInsights
Description
Returns a list of insights in your Amazon Web Services 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_maxResults :: Lens' ListInsights (Maybe Natural)
- listInsights_nextToken :: Lens' ListInsights (Maybe Text)
- listInsights_statusFilter :: Lens' ListInsights ListInsightsStatusFilter
- data ListInsightsResponse = ListInsightsResponse' {}
- newListInsightsResponse :: Int -> ListInsightsResponse
- listInsightsResponse_nextToken :: Lens' ListInsightsResponse (Maybe Text)
- listInsightsResponse_proactiveInsights :: Lens' ListInsightsResponse (Maybe [ProactiveInsightSummary])
- listInsightsResponse_reactiveInsights :: Lens' ListInsightsResponse (Maybe [ReactiveInsightSummary])
- 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: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.
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:statusFilter:ListInsights', listInsights_statusFilter - A filter used to filter the returned insights by their status. You can
specify one status filter.
Request Lenses
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_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_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:
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:reactiveInsights:ListInsightsResponse', listInsightsResponse_reactiveInsights - The returned list of reactive insights.
$sel:httpStatus:ListInsightsResponse', listInsightsResponse_httpStatus - The response's http status code.
Response Lenses
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_reactiveInsights :: Lens' ListInsightsResponse (Maybe [ReactiveInsightSummary]) Source #
The returned list of reactive insights.
listInsightsResponse_httpStatus :: Lens' ListInsightsResponse Int Source #
The response's http status code.