{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-batch-get-traces-result-schema.json",
  "title": "BatchGetTracesResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-traces-api-openapi.yml#/components/schemas/BatchGetTracesResult",
  "type": "object",
  "properties": {
    "Traces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Trace"
      },
      "description": "Full traces for the specified requests."
    },
    "UnprocessedTraceIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Trace IDs of requests that haven't been processed."
    },
    "NextToken": {
      "type": "string",
      "description": "Pagination token."
    }
  },
  "$defs": {
    "Segment": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The segment's ID."
        },
        "Document": {
          "type": "string",
          "description": "The segment document."
        }
      }
    },
    "Trace": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The unique identifier for the request that generated the trace's segments and subsegments."
        },
        "Duration": {
          "type": "number",
          "description": "The length of time in seconds between the start time of the earliest segment that started and the end time of the last segment that completed."
        },
        "LimitExceeded": {
          "type": "boolean",
          "description": "LimitExceeded is set to true when the trace has exceeded the Trace document size limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas."
        },
        "Segments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Segment"
          },
          "description": "Segment documents for the segments and subsegments that comprise the trace."
        }
      }
    }
  }
}