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

Description

Returns a list of insights in your AWS account. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and 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.

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

  • 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
Eq SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Read SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Show SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Generic SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Associated Types

type Rep SearchInsights :: Type -> Type #

NFData SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Methods

rnf :: SearchInsights -> () #

Hashable SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

ToJSON 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 #

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

type Rep SearchInsights Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

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

Defined in Amazonka.DevOpsGuru.SearchInsights

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:

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

$sel:nextToken: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.

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

$sel:startTimeRange:SearchInsights', searchInsights_startTimeRange - The start of the time range passed in. Returned insights occurred after this time.

$sel:type':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_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_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_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
Eq SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Read SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Show SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Generic SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Associated Types

type Rep SearchInsightsResponse :: Type -> Type #

NFData SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

Methods

rnf :: SearchInsightsResponse -> () #

type Rep SearchInsightsResponse Source # 
Instance details

Defined in Amazonka.DevOpsGuru.SearchInsights

type Rep SearchInsightsResponse = D1 ('MetaData "SearchInsightsResponse" "Amazonka.DevOpsGuru.SearchInsights" "libZSservicesZSamazonka-devops-guruZSamazonka-devops-guru" 'False) (C1 ('MetaCons "SearchInsightsResponse'" '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))))

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:

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

$sel:nextToken: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: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.