aws xray get-service-graph
Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To get a service graph
The following get-service-graph example displays a document within a specified time period that describes services processing incoming requests, and the downstream services that they call as a result.
aws xray get-service-graph --start-time 1568835392.0 --end-time 1568835446.0Identify--start-timeThe start of the time frame for which to generate a graph.--end-timeThe end of the timeframe for which to generate a graph.Its output, shortened
{
"Services": [
{
"ReferenceId": 0,
"Name": "Scorekeep",
"Names": [
"Scorekeep"
],
"Root": true,
"Type": "AWS::ElasticBeanstalk::Environment",
"State": "active",
"StartTime": 1568835392.0,
"EndTime": 1568835446.0,
"Edges": [
{
"ReferenceId": 1,
"StartTime": 1568835392.0,
"EndTime": 1568835446.0,
"SummaryStatistics": {
"OkCount": 14,
"ErrorStatistics": {
"ThrottleCount": 0,
"OtherCount": 0,
"TotalCount": 0
},
"FaultStatistics": {
"OtherCount": 0,
"TotalCount": 0
},
"TotalCount": 14,
… 41 more linesFor more information, see Using the AWS X-Ray API with the AWS CLI in the AWS X-Ray Developer Guide.
Options
--end-timeThe end of the timeframe for which to generate a graph.--group-arnThe Amazon Resource Name (ARN) of a group based on which you want to generate a graph.--group-nameThe name of a group based on which you want to generate a graph.--next-tokenPagination token.--start-timeThe start of the time frame for which to generate a graph.