XRay.Client.
get_insight_impact_graph
(**kwargs)¶Retrieves a service graph structure filtered by the specified insight. The service graph is limited to only structural information. For a complete service graph, use this API with the GetServiceGraph API.
See also: AWS API Documentation
Request Syntax
response = client.get_insight_impact_graph(
InsightId='string',
StartTime=datetime(2015, 1, 1),
EndTime=datetime(2015, 1, 1),
NextToken='string'
)
[REQUIRED]
The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
[REQUIRED]
The estimated start time of the insight, in Unix time seconds. The StartTime is inclusive of the value provided and can't be more than 30 days old.
[REQUIRED]
The estimated end time of the insight, in Unix time seconds. The EndTime is exclusive of the value provided. The time range between the start time and end time can't be more than six hours.
dict
Response Syntax
{
'InsightId': 'string',
'StartTime': datetime(2015, 1, 1),
'EndTime': datetime(2015, 1, 1),
'ServiceGraphStartTime': datetime(2015, 1, 1),
'ServiceGraphEndTime': datetime(2015, 1, 1),
'Services': [
{
'ReferenceId': 123,
'Type': 'string',
'Name': 'string',
'Names': [
'string',
],
'AccountId': 'string',
'Edges': [
{
'ReferenceId': 123
},
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
InsightId (string) --
The insight's unique identifier.
StartTime (datetime) --
The provided start time.
EndTime (datetime) --
The provided end time.
ServiceGraphStartTime (datetime) --
The time, in Unix seconds, at which the service graph started.
ServiceGraphEndTime (datetime) --
The time, in Unix seconds, at which the service graph ended.
Services (list) --
The Amazon Web Services instrumented services related to the insight.
(dict) --
Information about an application that processed requests, users that made requests, or downstream services, resources, and applications that an application used.
ReferenceId (integer) --
Identifier for the service. Unique within the service map.
Type (string) --
Identifier for the service. Unique within the service map.
Name (string) --
The canonical name of the service.
Names (list) --
A list of names for the service, including the canonical name.
AccountId (string) --
Identifier of the Amazon Web Services account in which the service runs.
Edges (list) --
Connections to downstream services.
(dict) --
The connection between two service in an insight impact graph.
ReferenceId (integer) --
Identifier of the edge. Unique within a service map.
NextToken (string) --
Pagination token.
Exceptions
XRay.Client.exceptions.InvalidRequestException
XRay.Client.exceptions.ThrottledException