{ "version":"2.0", "metadata":{ "apiVersion":"2016-04-12", "endpointPrefix":"xray", "protocol":"rest-json", "serviceFullName":"AWS X-Ray", "signatureVersion":"v4", "uid":"xray-2016-04-12" }, "operations":{ "BatchGetTraces":{ "name":"BatchGetTraces", "http":{ "method":"POST", "requestUri":"/Traces" }, "input":{"shape":"BatchGetTracesRequest"}, "output":{"shape":"BatchGetTracesResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Retrieves a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use GetTraceSummaries to get a list of trace IDs.

" }, "GetServiceGraph":{ "name":"GetServiceGraph", "http":{ "method":"POST", "requestUri":"/ServiceGraph" }, "input":{"shape":"GetServiceGraphRequest"}, "output":{"shape":"GetServiceGraphResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.

" }, "GetTraceGraph":{ "name":"GetTraceGraph", "http":{ "method":"POST", "requestUri":"/TraceGraph" }, "input":{"shape":"GetTraceGraphRequest"}, "output":{"shape":"GetTraceGraphResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Retrieves a service graph for one or more specific trace IDs.

" }, "GetTraceSummaries":{ "name":"GetTraceSummaries", "http":{ "method":"POST", "requestUri":"/TraceSummaries" }, "input":{"shape":"GetTraceSummariesRequest"}, "output":{"shape":"GetTraceSummariesResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Retrieves IDs and metadata for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.

" }, "PutTelemetryRecords":{ "name":"PutTelemetryRecords", "http":{ "method":"POST", "requestUri":"/TelemetryRecords" }, "input":{"shape":"PutTelemetryRecordsRequest"}, "output":{"shape":"PutTelemetryRecordsResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Used by the AWS X-Ray daemon to upload telemetry.

" }, "PutTraceSegments":{ "name":"PutTraceSegments", "http":{ "method":"POST", "requestUri":"/TraceSegments" }, "input":{"shape":"PutTraceSegmentsRequest"}, "output":{"shape":"PutTraceSegmentsResult"}, "errors":[ {"shape":"InvalidRequestException"}, {"shape":"ThrottledException"} ], "documentation":"

Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.

" } }, "shapes":{ "Alias":{ "type":"structure", "members":{ "Name":{ "shape":"String", "documentation":"

The canonical name of the alias.

" }, "Names":{ "shape":"AliasNames", "documentation":"

A list of names for the alias, including the canonical name.

" }, "Type":{ "shape":"String", "documentation":"

The type of the alias.

" } }, "documentation":"

An alias for an edge.

" }, "AliasList":{ "type":"list", "member":{"shape":"Alias"} }, "AliasNames":{ "type":"list", "member":{"shape":"String"} }, "AnnotationKey":{"type":"string"}, "AnnotationValue":{ "type":"structure", "members":{ "NumberValue":{ "shape":"NullableDouble", "documentation":"

Value for a Number annotation.

" }, "BooleanValue":{ "shape":"NullableBoolean", "documentation":"

Value for a Boolean annotation.

" }, "StringValue":{ "shape":"String", "documentation":"

Value for a String annotation.

" } }, "documentation":"

Value of a segment annotation. Has one of three value types: Number, Boolean or String.

" }, "Annotations":{ "type":"map", "key":{"shape":"AnnotationKey"}, "value":{"shape":"ValuesWithServiceIds"} }, "BackendConnectionErrors":{ "type":"structure", "members":{ "TimeoutCount":{ "shape":"NullableInteger", "documentation":"

" }, "ConnectionRefusedCount":{ "shape":"NullableInteger", "documentation":"

" }, "HTTPCode4XXCount":{ "shape":"NullableInteger", "documentation":"

" }, "HTTPCode5XXCount":{ "shape":"NullableInteger", "documentation":"

" }, "UnknownHostCount":{ "shape":"NullableInteger", "documentation":"

" }, "OtherCount":{ "shape":"NullableInteger", "documentation":"

" } }, "documentation":"

" }, "BatchGetTracesRequest":{ "type":"structure", "required":["TraceIds"], "members":{ "TraceIds":{ "shape":"TraceIdList", "documentation":"

Specify the trace IDs of requests for which to retrieve segments.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "BatchGetTracesResult":{ "type":"structure", "members":{ "Traces":{ "shape":"TraceList", "documentation":"

Full traces for the specified requests.

" }, "UnprocessedTraceIds":{ "shape":"UnprocessedTraceIdList", "documentation":"

Trace IDs of requests that haven't been processed.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "Double":{"type":"double"}, "Edge":{ "type":"structure", "members":{ "ReferenceId":{ "shape":"NullableInteger", "documentation":"

Identifier of the edge. Unique within a service map.

" }, "StartTime":{ "shape":"Timestamp", "documentation":"

The start time of the first segment on the edge.

" }, "EndTime":{ "shape":"Timestamp", "documentation":"

The end time of the last segment on the edge.

" }, "SummaryStatistics":{ "shape":"EdgeStatistics", "documentation":"

Response statistics for segments on the edge.

" }, "ResponseTimeHistogram":{ "shape":"Histogram", "documentation":"

Histogram describing the prominence of response times on the edge.

" }, "Aliases":{ "shape":"AliasList", "documentation":"

Aliases for the edge.

" } }, "documentation":"

Information about a connection between two services.

" }, "EdgeList":{ "type":"list", "member":{"shape":"Edge"} }, "EdgeStatistics":{ "type":"structure", "members":{ "OkCount":{ "shape":"NullableLong", "documentation":"

The number of requests that completed with a 2xx Success status code.

" }, "ErrorStatistics":{ "shape":"ErrorStatistics", "documentation":"

Information about requests that failed with a 4xx Client Error status code.

" }, "FaultStatistics":{ "shape":"FaultStatistics", "documentation":"

Information about requests that failed with a 5xx Server Error status code.

" }, "TotalCount":{ "shape":"NullableLong", "documentation":"

The total number of completed requests.

" }, "TotalResponseTime":{ "shape":"NullableDouble", "documentation":"

The aggregate response time of completed requests.

" } }, "documentation":"

Response statistics for an edge.

" }, "ErrorStatistics":{ "type":"structure", "members":{ "ThrottleCount":{ "shape":"NullableLong", "documentation":"

The number of requests that failed with a 419 throttling status code.

" }, "OtherCount":{ "shape":"NullableLong", "documentation":"

The number of requests that failed with untracked 4xx Client Error status codes.

" }, "TotalCount":{ "shape":"NullableLong", "documentation":"

The total number of requests that failed with a 4xx Client Error status code.

" } }, "documentation":"

Information about requests that failed with a 4xx Client Error status code.

" }, "FaultStatistics":{ "type":"structure", "members":{ "OtherCount":{ "shape":"NullableLong", "documentation":"

The number of requests that failed with untracked 5xx Server Error status codes.

" }, "TotalCount":{ "shape":"NullableLong", "documentation":"

The total number of requests that failed with a 5xx Server Error status code.

" } }, "documentation":"

Information about requests that failed with a 5xx Server Error status code.

" }, "FilterExpression":{ "type":"string", "max":2000, "min":0 }, "GetServiceGraphRequest":{ "type":"structure", "required":[ "StartTime", "EndTime" ], "members":{ "StartTime":{ "shape":"Timestamp", "documentation":"

The start of the time frame for which to generate a graph.

" }, "EndTime":{ "shape":"Timestamp", "documentation":"

The end of the time frame for which to generate a graph.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "GetServiceGraphResult":{ "type":"structure", "members":{ "StartTime":{ "shape":"Timestamp", "documentation":"

The start of the time frame for which the graph was generated.

" }, "EndTime":{ "shape":"Timestamp", "documentation":"

The end of the time frame for which the graph was generated.

" }, "Services":{ "shape":"ServiceList", "documentation":"

The services that have processed a traced request during the specified time frame.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "GetTraceGraphRequest":{ "type":"structure", "required":["TraceIds"], "members":{ "TraceIds":{ "shape":"TraceIdList", "documentation":"

Trace IDs of requests for which to generate a service graph.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "GetTraceGraphResult":{ "type":"structure", "members":{ "Services":{ "shape":"ServiceList", "documentation":"

The services that have processed one of the specified requests.

" }, "NextToken":{ "shape":"String", "documentation":"

Pagination token. Not used.

" } } }, "GetTraceSummariesRequest":{ "type":"structure", "required":[ "StartTime", "EndTime" ], "members":{ "StartTime":{ "shape":"Timestamp", "documentation":"

The start of the time frame for which to retrieve traces.

" }, "EndTime":{ "shape":"Timestamp", "documentation":"

The end of the time frame for which to retrieve traces.

" }, "Sampling":{ "shape":"NullableBoolean", "documentation":"

Set to true to get summaries for only a subset of available traces.

" }, "FilterExpression":{ "shape":"FilterExpression", "documentation":"

Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.

" }, "NextToken":{ "shape":"String", "documentation":"

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

" } } }, "GetTraceSummariesResult":{ "type":"structure", "members":{ "TraceSummaries":{ "shape":"TraceSummaryList", "documentation":"

Trace IDs and metadata for traces that were found in the specified time frame.

" }, "ApproximateTime":{ "shape":"Timestamp", "documentation":"

The start time of this page of results.

" }, "TracesProcessedCount":{ "shape":"NullableLong", "documentation":"

The number of traces that were processed to get this set of summaries.

" }, "NextToken":{ "shape":"String", "documentation":"

If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most most recent results, closest to the end of the time frame.

" } } }, "Histogram":{ "type":"list", "member":{"shape":"HistogramEntry"} }, "HistogramEntry":{ "type":"structure", "members":{ "Value":{ "shape":"Double", "documentation":"

The value of the entry.

" }, "Count":{ "shape":"Integer", "documentation":"

The prevalence of the entry.

" } }, "documentation":"

An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.

" }, "Http":{ "type":"structure", "members":{ "HttpURL":{ "shape":"String", "documentation":"

The request URL.

" }, "HttpStatus":{ "shape":"NullableInteger", "documentation":"

The response status.

" }, "HttpMethod":{ "shape":"String", "documentation":"

The request method.

" }, "UserAgent":{ "shape":"String", "documentation":"

The request's user agent string.

" }, "ClientIp":{ "shape":"String", "documentation":"

The IP address of the requestor.

" } }, "documentation":"

Information about an HTTP request.

" }, "Integer":{"type":"integer"}, "InvalidRequestException":{ "type":"structure", "members":{ }, "documentation":"

The request is missing required parameters or has invalid parameters.

", "exception":true }, "NullableBoolean":{"type":"boolean"}, "NullableDouble":{"type":"double"}, "NullableInteger":{"type":"integer"}, "NullableLong":{"type":"long"}, "PutTelemetryRecordsRequest":{ "type":"structure", "required":["TelemetryRecords"], "members":{ "TelemetryRecords":{ "shape":"TelemetryRecordList", "documentation":"

" }, "EC2InstanceId":{ "shape":"String", "documentation":"

" }, "Hostname":{ "shape":"String", "documentation":"

" }, "ResourceARN":{ "shape":"String", "documentation":"

" } } }, "PutTelemetryRecordsResult":{ "type":"structure", "members":{ } }, "PutTraceSegmentsRequest":{ "type":"structure", "required":["TraceSegmentDocuments"], "members":{ "TraceSegmentDocuments":{ "shape":"TraceSegmentDocumentList", "documentation":"

A JSON document defining one or more segments or subsegments. Segments must include the following fields.

Required Segment Document Fields

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:

Trace ID Format

" } } }, "PutTraceSegmentsResult":{ "type":"structure", "members":{ "UnprocessedTraceSegments":{ "shape":"UnprocessedTraceSegmentList", "documentation":"

Segments that failed processing.

" } } }, "Segment":{ "type":"structure", "members":{ "Id":{ "shape":"SegmentId", "documentation":"

The segment's ID.

" }, "Document":{ "shape":"SegmentDocument", "documentation":"

The segment document.

" } }, "documentation":"

Information about a segment

" }, "SegmentDocument":{ "type":"string", "min":1 }, "SegmentId":{ "type":"string", "max":16, "min":16 }, "SegmentList":{ "type":"list", "member":{"shape":"Segment"} }, "Service":{ "type":"structure", "members":{ "ReferenceId":{ "shape":"NullableInteger", "documentation":"

Identifier for the service. Unique within the service map.

" }, "Name":{ "shape":"String", "documentation":"

The canonical name of the service.

" }, "Names":{ "shape":"ServiceNames", "documentation":"

A list of names for the service, including the canonical name.

" }, "Root":{ "shape":"NullableBoolean", "documentation":"

Indicates that the service was the first service to process a request.

" }, "AccountId":{ "shape":"String", "documentation":"

Identifier of the AWS account in which the service runs.

" }, "Type":{ "shape":"String", "documentation":"

The type of service.

" }, "State":{ "shape":"String", "documentation":"

The service's state.

" }, "StartTime":{ "shape":"Timestamp", "documentation":"

The start time of the first segment that the service generated.

" }, "EndTime":{ "shape":"Timestamp", "documentation":"

The end time of the last segment that the service generated.

" }, "Edges":{ "shape":"EdgeList", "documentation":"

Connections to downstream services.

" }, "SummaryStatistics":{ "shape":"ServiceStatistics", "documentation":"

Aggregated statistics for the service.

" }, "DurationHistogram":{ "shape":"Histogram", "documentation":"

Histogram mapping the spread of trace durations

" } }, "documentation":"

Information about an application that processed requests, users that made requests, or downstream services, resources and applications that an application used.

" }, "ServiceId":{ "type":"structure", "members":{ "Name":{ "shape":"String", "documentation":"

" }, "Names":{ "shape":"ServiceNames", "documentation":"

" }, "AccountId":{ "shape":"String", "documentation":"

" }, "Type":{ "shape":"String", "documentation":"

" } }, "documentation":"

" }, "ServiceIds":{ "type":"list", "member":{"shape":"ServiceId"} }, "ServiceList":{ "type":"list", "member":{"shape":"Service"} }, "ServiceNames":{ "type":"list", "member":{"shape":"String"} }, "ServiceStatistics":{ "type":"structure", "members":{ "OkCount":{ "shape":"NullableLong", "documentation":"

The number of requests that completed with a 2xx Success status code.

" }, "ErrorStatistics":{ "shape":"ErrorStatistics", "documentation":"

Information about requests that failed with a 4xx Client Error status code.

" }, "FaultStatistics":{ "shape":"FaultStatistics", "documentation":"

Information about requests that failed with a 5xx Server Error status code.

" }, "TotalCount":{ "shape":"NullableLong", "documentation":"

The total number of completed requests.

" }, "TotalResponseTime":{ "shape":"NullableDouble", "documentation":"

The aggregate response time of completed requests.

" } }, "documentation":"

Response statistics for a service.

" }, "String":{"type":"string"}, "TelemetryRecord":{ "type":"structure", "members":{ "Timestamp":{ "shape":"Timestamp", "documentation":"

" }, "SegmentsReceivedCount":{ "shape":"NullableInteger", "documentation":"

" }, "SegmentsSentCount":{ "shape":"NullableInteger", "documentation":"

" }, "SegmentsSpilloverCount":{ "shape":"NullableInteger", "documentation":"

" }, "SegmentsRejectedCount":{ "shape":"NullableInteger", "documentation":"

" }, "BackendConnectionErrors":{ "shape":"BackendConnectionErrors", "documentation":"

" } }, "documentation":"

" }, "TelemetryRecordList":{ "type":"list", "member":{"shape":"TelemetryRecord"} }, "ThrottledException":{ "type":"structure", "members":{ }, "documentation":"

The request exceeds the maximum number of requests per second.

", "error":{"httpStatusCode":429}, "exception":true }, "Timestamp":{"type":"timestamp"}, "Trace":{ "type":"structure", "members":{ "Id":{ "shape":"TraceId", "documentation":"

The unique identifier for the request that generated the trace's segments and subsegments.

" }, "Duration":{ "shape":"NullableDouble", "documentation":"

The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

" }, "Segments":{ "shape":"SegmentList", "documentation":"

Segment documents for the segments and subsegments that comprise the trace.

" } }, "documentation":"

A collection of segment documents with matching trace IDs.

" }, "TraceId":{ "type":"string", "max":35, "min":35 }, "TraceIdList":{ "type":"list", "member":{"shape":"TraceId"} }, "TraceList":{ "type":"list", "member":{"shape":"Trace"} }, "TraceSegmentDocument":{"type":"string"}, "TraceSegmentDocumentList":{ "type":"list", "member":{"shape":"TraceSegmentDocument"} }, "TraceSummary":{ "type":"structure", "members":{ "Id":{ "shape":"TraceId", "documentation":"

The unique identifier for the request that generated the trace's segments and subsegments.

" }, "Duration":{ "shape":"NullableDouble", "documentation":"

The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

" }, "ResponseTime":{ "shape":"NullableDouble", "documentation":"

The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.

" }, "HasFault":{ "shape":"NullableBoolean", "documentation":"

One or more of the segment documents has a 500 series error.

" }, "HasError":{ "shape":"NullableBoolean", "documentation":"

One or more of the segment documents has a 400 series error.

" }, "HasThrottle":{ "shape":"NullableBoolean", "documentation":"

One or more of the segment documents has a 429 throttling error.

" }, "IsPartial":{ "shape":"NullableBoolean", "documentation":"

One or more of the segment documents is in progress.

" }, "Http":{ "shape":"Http", "documentation":"

Information about the HTTP request served by the trace.

" }, "Annotations":{ "shape":"Annotations", "documentation":"

Annotations from the trace's segment documents.

" }, "Users":{ "shape":"TraceUsers", "documentation":"

Users from the trace's segment documents.

" }, "ServiceIds":{ "shape":"ServiceIds", "documentation":"

Service IDs from the trace's segment documents.

" } }, "documentation":"

Metadata generated from the segment documents in a trace.

" }, "TraceSummaryList":{ "type":"list", "member":{"shape":"TraceSummary"} }, "TraceUser":{ "type":"structure", "members":{ "UserName":{ "shape":"String", "documentation":"

The user's name.

" }, "ServiceIds":{ "shape":"ServiceIds", "documentation":"

Services that the user's request hit.

" } }, "documentation":"

Information about a user recorded in segment documents.

" }, "TraceUsers":{ "type":"list", "member":{"shape":"TraceUser"} }, "UnprocessedTraceIdList":{ "type":"list", "member":{"shape":"TraceId"} }, "UnprocessedTraceSegment":{ "type":"structure", "members":{ "Id":{ "shape":"String", "documentation":"

The segment's ID.

" }, "ErrorCode":{ "shape":"String", "documentation":"

The error that caused processing to fail.

" }, "Message":{ "shape":"String", "documentation":"

The error message.

" } }, "documentation":"

Information about a segment that failed processing.

" }, "UnprocessedTraceSegmentList":{ "type":"list", "member":{"shape":"UnprocessedTraceSegment"} }, "ValueWithServiceIds":{ "type":"structure", "members":{ "AnnotationValue":{ "shape":"AnnotationValue", "documentation":"

Values of the annotation.

" }, "ServiceIds":{ "shape":"ServiceIds", "documentation":"

Services to which the annotation applies.

" } }, "documentation":"

Information about a segment annotation.

" }, "ValuesWithServiceIds":{ "type":"list", "member":{"shape":"ValueWithServiceIds"} } }, "documentation":"

AWS X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those traces.

" }