{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-sampling-targets-request-schema.json",
  "title": "GetSamplingTargetsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-samplingtargets-api-openapi.yml#/components/schemas/GetSamplingTargetsRequest",
  "type": "object",
  "properties": {
    "SamplingStatisticsDocuments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SamplingStatisticsDocument"
      },
      "description": "Information about rules that the service is using to sample requests."
    },
    "SamplingBoostStatisticsDocuments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SamplingBoostStatisticsDocument"
      },
      "description": "Information about rules that the service is using to boost sampling rate."
    }
  },
  "required": [
    "SamplingStatisticsDocuments"
  ],
  "$defs": {
    "SamplingBoostStatisticsDocument": {
      "type": "object",
      "properties": {
        "RuleName": {
          "type": "string",
          "description": "The name of the sampling rule."
        },
        "ServiceName": {
          "type": "string",
          "description": "Matches the name that the service uses to identify itself in segments."
        },
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The current time."
        },
        "AnomalyCount": {
          "type": "integer",
          "description": "The number of requests with anomaly."
        },
        "TotalCount": {
          "type": "integer",
          "description": "The number of requests that associated to the rule."
        },
        "SampledAnomalyCount": {
          "type": "integer",
          "description": "The number of requests with anomaly recorded."
        }
      },
      "required": [
        "RuleName",
        "ServiceName",
        "Timestamp",
        "AnomalyCount",
        "TotalCount",
        "SampledAnomalyCount"
      ]
    },
    "SamplingStatisticsDocument": {
      "type": "object",
      "properties": {
        "RuleName": {
          "type": "string",
          "description": "The name of the sampling rule."
        },
        "ClientID": {
          "type": "string",
          "description": "A unique identifier for the service in hexadecimal."
        },
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The current time."
        },
        "RequestCount": {
          "type": "integer",
          "description": "The number of requests that matched the rule."
        },
        "SampledCount": {
          "type": "integer",
          "description": "The number of requests recorded."
        },
        "BorrowCount": {
          "type": "integer",
          "description": "The number of requests recorded with borrowed reservoir quota."
        }
      },
      "required": [
        "RuleName",
        "ClientID",
        "Timestamp",
        "RequestCount",
        "SampledCount"
      ]
    }
  }
}