{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-time-series-service-statistics-result-schema.json",
  "title": "GetTimeSeriesServiceStatisticsResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-timeseriesservicestatistics-api-openapi.yml#/components/schemas/GetTimeSeriesServiceStatisticsResult",
  "type": "object",
  "properties": {
    "TimeSeriesServiceStatistics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TimeSeriesServiceStatistics"
      },
      "description": "The collection of statistics."
    },
    "ContainsOldGroupVersions": {
      "type": "boolean",
      "description": "A flag indicating whether or not a group's filter expression has been consistent, or if a returned aggregation might show statistics from an older version of the group's filter expression."
    },
    "NextToken": {
      "type": "string",
      "description": "Pagination token."
    }
  },
  "$defs": {
    "EdgeStatistics": {
      "type": "object",
      "properties": {
        "OkCount": {
          "type": "integer",
          "description": "The number of requests that completed with a 2xx Success status code."
        },
        "ErrorStatistics": {
          "$ref": "#/$defs/ErrorStatistics"
        },
        "FaultStatistics": {
          "$ref": "#/$defs/FaultStatistics"
        },
        "TotalCount": {
          "type": "integer",
          "description": "The total number of completed requests."
        },
        "TotalResponseTime": {
          "type": "number",
          "description": "The aggregate response time of completed requests."
        }
      }
    },
    "ErrorStatistics": {
      "type": "object",
      "properties": {
        "ThrottleCount": {
          "type": "integer",
          "description": "The number of requests that failed with a 429 throttling status code."
        },
        "OtherCount": {
          "type": "integer",
          "description": "The number of requests that failed with untracked 4xx Client Error status codes."
        },
        "TotalCount": {
          "type": "integer",
          "description": "The total number of requests that failed with a 4xx Client Error status code."
        }
      }
    },
    "FaultStatistics": {
      "type": "object",
      "properties": {
        "OtherCount": {
          "type": "integer",
          "description": "The number of requests that failed with untracked 5xx Server Error status codes."
        },
        "TotalCount": {
          "type": "integer",
          "description": "The total number of requests that failed with a 5xx Server Error status code."
        }
      }
    },
    "ForecastStatistics": {
      "type": "object",
      "properties": {
        "FaultCountHigh": {
          "type": "integer",
          "description": "The upper limit of fault counts for a service."
        },
        "FaultCountLow": {
          "type": "integer",
          "description": "The lower limit of fault counts for a service."
        }
      }
    },
    "HistogramEntry": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "number",
          "description": "The value of the entry."
        },
        "Count": {
          "type": "integer",
          "description": "The prevalence of the entry."
        }
      }
    },
    "ServiceStatistics": {
      "type": "object",
      "properties": {
        "OkCount": {
          "type": "integer",
          "description": "The number of requests that completed with a 2xx Success status code."
        },
        "ErrorStatistics": {
          "$ref": "#/$defs/ErrorStatistics"
        },
        "FaultStatistics": {
          "$ref": "#/$defs/FaultStatistics"
        },
        "TotalCount": {
          "type": "integer",
          "description": "The total number of completed requests."
        },
        "TotalResponseTime": {
          "type": "number",
          "description": "The aggregate response time of completed requests."
        }
      }
    },
    "TimeSeriesServiceStatistics": {
      "type": "object",
      "properties": {
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp of the window for which statistics are aggregated."
        },
        "EdgeSummaryStatistics": {
          "$ref": "#/$defs/EdgeStatistics"
        },
        "ServiceSummaryStatistics": {
          "$ref": "#/$defs/ServiceStatistics"
        },
        "ServiceForecastStatistics": {
          "$ref": "#/$defs/ForecastStatistics"
        },
        "ResponseTimeHistogram": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HistogramEntry"
          },
          "description": "The response time histogram for the selected entities."
        }
      }
    }
  }
}