libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data ListInsights Source #

See: newListInsights smart constructor.

Constructors

ListInsights' 

Fields

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • statusFilter :: ListInsightsStatusFilter

    A filter used to filter the returned insights by their status. You can specify one status filter.

Instances

Instances details
Eq ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Read ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Show ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Generic ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type Rep ListInsights :: Type -> Type #

NFData ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Methods

rnf :: ListInsights -> () #

Hashable ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToJSON ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

AWSPager ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

AWSRequest ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type AWSResponse ListInsights #

ToHeaders ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToPath ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

ToQuery ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsights = D1 ('MetaData "ListInsights" "Amazonka.DevOpsGuru.ListInsights" "libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru" 'False) (C1 ('MetaCons "ListInsights'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "statusFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ListInsightsStatusFilter))))
type AWSResponse ListInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

newListInsights Source #

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

Instances details
Eq ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Read ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Show ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Generic ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Associated Types

type Rep ListInsightsResponse :: Type -> Type #

NFData ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

Methods

rnf :: ListInsightsResponse -> () #

type Rep ListInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.ListInsights

type Rep ListInsightsResponse = D1 ('MetaData "ListInsightsResponse" "Amazonka.DevOpsGuru.ListInsights" "libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru" 'False) (C1 ('MetaCons "ListInsightsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reactiveInsights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ReactiveInsightSummary])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "proactiveInsights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProactiveInsightSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListInsightsResponse Source #

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_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.