{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allianz-future-cloud-platform/json-schema/allianz-future-cloud-platform-metrics-response-schema.json",
  "title": "MetricsResponse",
  "description": "Platform metrics for a service or overall platform",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allianz-future-cloud-platform-observability-api-openapi.yml#/components/schemas/MetricsResponse",
  "type": "object",
  "properties": {
    "service_id": {
      "type": "string",
      "description": "Service the metrics apply to (null for platform-wide)"
    },
    "time_range_minutes": {
      "type": "integer",
      "description": "Time range the metrics cover"
    },
    "cpu_utilization": {
      "type": "number",
      "format": "double",
      "description": "Average CPU utilization percentage"
    },
    "memory_utilization": {
      "type": "number",
      "format": "double",
      "description": "Average memory utilization percentage"
    },
    "request_rate": {
      "type": "number",
      "format": "double",
      "description": "Requests per minute"
    },
    "error_rate": {
      "type": "number",
      "format": "double",
      "description": "Error rate as a percentage"
    },
    "p99_latency_ms": {
      "type": "integer",
      "description": "99th percentile response latency in milliseconds"
    }
  }
}