{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-sampling-targets-result-schema.json",
  "title": "GetSamplingTargetsResult",
  "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/GetSamplingTargetsResult",
  "type": "object",
  "properties": {
    "SamplingTargetDocuments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SamplingTargetDocument"
      },
      "description": "Updated rules that the service should use to sample requests."
    },
    "LastRuleModification": {
      "type": "string",
      "format": "date-time",
      "description": "The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version."
    },
    "UnprocessedStatistics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnprocessedStatistics"
      },
      "description": "Information about SamplingStatisticsDocument that X-Ray could not process."
    },
    "UnprocessedBoostStatistics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnprocessedStatistics"
      },
      "description": "Information about SamplingBoostStatisticsDocument that X-Ray could not process."
    }
  },
  "$defs": {
    "SamplingBoost": {
      "type": "object",
      "properties": {
        "BoostRate": {
          "type": "number",
          "description": "The calculated sampling boost rate for this service"
        },
        "BoostRateTTL": {
          "type": "string",
          "format": "date-time",
          "description": "When the sampling boost expires."
        }
      },
      "required": [
        "BoostRate",
        "BoostRateTTL"
      ]
    },
    "SamplingTargetDocument": {
      "type": "object",
      "properties": {
        "RuleName": {
          "type": "string",
          "description": "The name of the sampling rule."
        },
        "FixedRate": {
          "type": "number",
          "description": "The percentage of matching requests to instrument, after the reservoir is exhausted."
        },
        "ReservoirQuota": {
          "type": "integer",
          "description": "The number of requests per second that X-Ray allocated for this service."
        },
        "ReservoirQuotaTTL": {
          "type": "string",
          "format": "date-time",
          "description": "When the reservoir quota expires."
        },
        "Interval": {
          "type": "integer",
          "description": "The number of seconds for the service to wait before getting sampling targets again."
        },
        "SamplingBoost": {
          "$ref": "#/$defs/SamplingBoost"
        }
      }
    },
    "UnprocessedStatistics": {
      "type": "object",
      "properties": {
        "RuleName": {
          "type": "string",
          "description": "The name of the sampling rule."
        },
        "ErrorCode": {
          "type": "string",
          "description": "The error code."
        },
        "Message": {
          "type": "string",
          "description": "The error message."
        }
      }
    }
  }
}