XRay.Client.
get_insight
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.get_insight(
InsightId='string'
)
[REQUIRED]
The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
{
'Insight': {
'InsightId': 'string',
'GroupARN': 'string',
'GroupName': 'string',
'RootCauseServiceId': {
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
},
'Categories': [
'FAULT',
],
'State': 'ACTIVE'|'CLOSED',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'Summary': 'string',
'ClientRequestImpactStatistics': {
'FaultCount': 123,
'OkCount': 123,
'TotalCount': 123
},
'RootCauseServiceRequestImpactStatistics': {
'FaultCount': 123,
'OkCount': 123,
'TotalCount': 123
},
'TopAnomalousServices': [
{
'ServiceId': {
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Type': 'string'
}
},
]
}
}
Response Structure
The summary information of an insight.
The insights unique identifier.
The Amazon Resource Name (ARN) of the group that the insight belongs to.
The name of the group that the insight belongs to.
The categories that label and describe the type of insight.
The current state of the insight.
The time, in Unix seconds, at which the insight began.
The time, in Unix seconds, at which the insight ended.
A brief description of the insight.
The 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.
The number of requests that have resulted in a fault,
The number of successful requests.
The total number of requests to the service.
The 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.
The number of requests that have resulted in a fault,
The number of successful requests.
The total number of requests to the service.
The service within the insight that is most impacted by the incident.
The service within the service graph that has anomalously high fault rates.
Exceptions
XRay.Client.exceptions.InvalidRequestException
XRay.Client.exceptions.ThrottledException