{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-voice-portal/json-schema/cisco-voice-portal-realtime-statistics-schema.json",
  "title": "RealtimeStatistics",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-voice-portal-real-time-statistics-api-openapi.yml#/components/schemas/RealtimeStatistics",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "activeCalls": {
      "type": "integer",
      "description": "Current number of active calls"
    },
    "callsInProgress": {
      "type": "object",
      "properties": {
        "selfService": {
          "type": "integer",
          "description": "Calls currently in self-service IVR"
        },
        "queued": {
          "type": "integer",
          "description": "Calls currently queued"
        },
        "connected": {
          "type": "integer",
          "description": "Calls connected to agents"
        }
      }
    },
    "callsPerSecond": {
      "type": "number",
      "format": "float",
      "description": "Current calls per second rate"
    },
    "peakActiveCalls": {
      "type": "integer",
      "description": "Peak active calls in current period"
    },
    "serverMetrics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "serverId": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "serverType": {
            "type": "string"
          },
          "activeCalls": {
            "type": "integer"
          },
          "cpuUsage": {
            "type": "number",
            "format": "float"
          },
          "memoryUsage": {
            "type": "number",
            "format": "float"
          }
        }
      }
    }
  }
}