{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-voice-portal/json-schema/cisco-voice-portal-device-status-schema.json",
  "title": "DeviceStatus",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-voice-portal-device-management-api-openapi.yml#/components/schemas/DeviceStatus",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "online",
        "offline",
        "maintenance",
        "error"
      ]
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "stopped",
              "error"
            ]
          },
          "uptime": {
            "type": "string",
            "description": "Service uptime duration"
          }
        }
      }
    },
    "cpuUsage": {
      "type": "number",
      "format": "float",
      "description": "CPU usage percentage"
    },
    "memoryUsage": {
      "type": "number",
      "format": "float",
      "description": "Memory usage percentage"
    },
    "activeCalls": {
      "type": "integer",
      "description": "Number of active calls on this device"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  }
}