amazonka-xray-2.0: Amazon X-Ray 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.XRay.GetInsightEvents

Description

X-Ray reevaluates insights periodically until they're resolved, and records each intermediate state as an event. You can review an insight's events in the Impact Timeline on the Inspect page in the X-Ray console.

Synopsis

Creating a Request

data GetInsightEvents Source #

See: newGetInsightEvents smart constructor.

Constructors

GetInsightEvents' 

Fields

  • maxResults :: Maybe Natural

    Used to retrieve at most the specified value of events.

  • nextToken :: Maybe Text

    Specify the pagination token returned by a previous request to retrieve the next page of events.

  • insightId :: Text

    The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.

Instances

Instances details
ToJSON GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

ToHeaders GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

ToPath GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

ToQuery GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

AWSRequest GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Associated Types

type AWSResponse GetInsightEvents #

Generic GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Associated Types

type Rep GetInsightEvents :: Type -> Type #

Read GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Show GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

NFData GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Methods

rnf :: GetInsightEvents -> () #

Eq GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Hashable GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

type AWSResponse GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

type Rep GetInsightEvents Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

type Rep GetInsightEvents = D1 ('MetaData "GetInsightEvents" "Amazonka.XRay.GetInsightEvents" "amazonka-xray-2.0-EVMSPoflqtHB9ZqvEIOE4Q" 'False) (C1 ('MetaCons "GetInsightEvents'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "insightId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetInsightEvents Source #

Create a value of GetInsightEvents 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:GetInsightEvents', getInsightEvents_maxResults - Used to retrieve at most the specified value of events.

GetInsightEvents, getInsightEvents_nextToken - Specify the pagination token returned by a previous request to retrieve the next page of events.

GetInsightEvents, getInsightEvents_insightId - The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.

Request Lenses

getInsightEvents_maxResults :: Lens' GetInsightEvents (Maybe Natural) Source #

Used to retrieve at most the specified value of events.

getInsightEvents_nextToken :: Lens' GetInsightEvents (Maybe Text) Source #

Specify the pagination token returned by a previous request to retrieve the next page of events.

getInsightEvents_insightId :: Lens' GetInsightEvents Text Source #

The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.

Destructuring the Response

data GetInsightEventsResponse Source #

See: newGetInsightEventsResponse smart constructor.

Constructors

GetInsightEventsResponse' 

Fields

  • insightEvents :: Maybe [InsightEvent]

    A detailed description of the event. This includes the time of the event, client and root cause impact statistics, and the top anomalous service at the time of the event.

  • nextToken :: Maybe Text

    Use this token to retrieve the next page of insight events.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Associated Types

type Rep GetInsightEventsResponse :: Type -> Type #

Read GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Show GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

NFData GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

Eq GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

type Rep GetInsightEventsResponse Source # 
Instance details

Defined in Amazonka.XRay.GetInsightEvents

type Rep GetInsightEventsResponse = D1 ('MetaData "GetInsightEventsResponse" "Amazonka.XRay.GetInsightEvents" "amazonka-xray-2.0-EVMSPoflqtHB9ZqvEIOE4Q" 'False) (C1 ('MetaCons "GetInsightEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "insightEvents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InsightEvent])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetInsightEventsResponse Source #

Create a value of GetInsightEventsResponse 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:insightEvents:GetInsightEventsResponse', getInsightEventsResponse_insightEvents - A detailed description of the event. This includes the time of the event, client and root cause impact statistics, and the top anomalous service at the time of the event.

GetInsightEvents, getInsightEventsResponse_nextToken - Use this token to retrieve the next page of insight events.

GetInsightEventsResponse, getInsightEventsResponse_httpStatus - The response's http status code.

Response Lenses

getInsightEventsResponse_insightEvents :: Lens' GetInsightEventsResponse (Maybe [InsightEvent]) Source #

A detailed description of the event. This includes the time of the event, client and root cause impact statistics, and the top anomalous service at the time of the event.

getInsightEventsResponse_nextToken :: Lens' GetInsightEventsResponse (Maybe Text) Source #

Use this token to retrieve the next page of insight events.