Skip to main content

insights

Creates, updates, deletes, gets or lists an insights resource.

Overview

Nameinsights
TypeResource
Idaws.xray.insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
categoriesarrayThe categories that label and describe the type of insight.
client_request_impact_statisticsobjectThe impact statistics of the client side service. This includes the number of requests to the client service and whether the requests were faults or okay.
end_timestring (date-time)The time, in Unix seconds, at which the insight ended.
group_arnstringThe Amazon Resource Name (ARN) of the group that the insight belongs to.
group_namestringThe name of the group that the insight belongs to.
insight_idstringThe insights unique identifier. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}</code>)
root_cause_service_idobject
root_cause_service_request_impact_statisticsobjectThe impact statistics of the root cause service. This includes the number of requests to the client service and whether the requests were faults or okay.
start_timestring (date-time)The time, in Unix seconds, at which the insight began.
statestringThe current state of the insight. (ACTIVE, CLOSED)
summarystringA brief description of the insight.
top_anomalous_servicesarrayThe service within the insight that is most impacted by the incident.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_insightselectregionRetrieves the summary information of an insight. This includes impact to clients and root cause services, the top anomalous services, the category, the state of the insight, and the start and end time of the insight.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the summary information of an insight. This includes impact to clients and root cause services, the top anomalous services, the category, the state of the insight, and the start and end time of the insight.

SELECT
categories,
client_request_impact_statistics,
end_time,
group_arn,
group_name,
insight_id,
root_cause_service_id,
root_cause_service_request_impact_statistics,
start_time,
state,
summary,
top_anomalous_services
FROM aws.xray.insights
WHERE region = '{{ region }}' -- required
;