amazonka-devops-guru-2.0: Amazon DevOps Guru SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DevOpsGuru.SearchInsights

Description

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).

Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchInsights Source #

See: newSearchInsights smart constructor.

Constructors

SearchInsights' 

Fields

  • filters :: Maybe SearchInsightsFilters

    A SearchInsightsFilters object that is used to set the severity and status filters on your insight search.

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

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

  • startTimeRange :: StartTimeRange

    The start of the time range passed in. Returned insights occurred after this time.

  • type' :: InsightType

    The type of insights you are searching for (REACTIVE or PROACTIVE).

Instances

Instances details
ToJSON SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

ToHeaders SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

ToPath SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

ToQuery SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

AWSPager SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

AWSRequest SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Associated Types

type AWSResponse SearchInsights #

Generic SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Associated Types

type Rep SearchInsights :: Type -> Type #

Read SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Show SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

NFData SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Methods

rnf :: SearchInsights -> () #

Eq SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Hashable SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

type AWSResponse SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

type Rep SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

type Rep SearchInsights = D1 ('MetaData "SearchInsights" "Amazonka.DevOpsGuru.SearchInsights" "amazonka-devops-guru-2.0-C03FLSgo73f1Pu5ftIREHS" 'False) (C1 ('MetaCons "SearchInsights'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SearchInsightsFilters)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "startTimeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 StartTimeRange) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InsightType)))))

newSearchInsights Source #

Create a value of SearchInsights 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:

SearchInsights, searchInsights_filters - A SearchInsightsFilters object that is used to set the severity and status filters on your insight search.

$sel:maxResults:SearchInsights', searchInsights_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.

SearchInsights, searchInsights_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.

SearchInsights, searchInsights_startTimeRange - The start of the time range passed in. Returned insights occurred after this time.

SearchInsights, searchInsights_type - The type of insights you are searching for (REACTIVE or PROACTIVE).

Request Lenses

searchInsights_filters :: Lens' SearchInsights (Maybe SearchInsightsFilters) Source #

A SearchInsightsFilters object that is used to set the severity and status filters on your insight search.

searchInsights_maxResults :: Lens' SearchInsights (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.

searchInsights_nextToken :: Lens' SearchInsights (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.

searchInsights_startTimeRange :: Lens' SearchInsights StartTimeRange Source #

The start of the time range passed in. Returned insights occurred after this time.

searchInsights_type :: Lens' SearchInsights InsightType Source #

The type of insights you are searching for (REACTIVE or PROACTIVE).

Destructuring the Response

data SearchInsightsResponse Source #

See: newSearchInsightsResponse smart constructor.

Constructors

SearchInsightsResponse' 

Fields

Instances

Instances details
Generic SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Associated Types

type Rep SearchInsightsResponse :: Type -> Type #

Read SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Show SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

NFData SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Methods

rnf :: SearchInsightsResponse -> () #

Eq SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

type Rep SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

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

newSearchInsightsResponse Source #

Create a value of SearchInsightsResponse 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:

SearchInsights, searchInsightsResponse_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:SearchInsightsResponse', searchInsightsResponse_proactiveInsights - The returned proactive insights.

$sel:reactiveInsights:SearchInsightsResponse', searchInsightsResponse_reactiveInsights - The returned reactive insights.

$sel:httpStatus:SearchInsightsResponse', searchInsightsResponse_httpStatus - The response's http status code.

Response Lenses

searchInsightsResponse_nextToken :: Lens' SearchInsightsResponse (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.