{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-cluster-node-summary-schema.json",
  "title": "Summary of Crosswork Node",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-clustermanager-api-openapi.yml#/components/schemas/clusterNodeSummary",
  "type": "object",
  "properties": {
    "node_name": {
      "type": "string"
    },
    "node_id": {
      "type": "string"
    },
    "node_health": {
      "$ref": "#/$defs/clusterHealthState"
    },
    "node_type": {
      "type": "string"
    },
    "vm_name": {
      "type": "string"
    },
    "node_resource": {
      "$ref": "#/$defs/clusterResource"
    },
    "actions": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean",
        "format": "boolean"
      }
    },
    "vm_state": {
      "type": "string"
    },
    "vm_id": {
      "type": "string"
    },
    "availability": {
      "type": "string"
    }
  },
  "$defs": {
    "clusterHealthState": {
      "type": "string",
      "enum": [
        "Healthy",
        "Degraded",
        "Down",
        "NA",
        "Unknown"
      ],
      "default": "Healthy"
    },
    "clusterResource": {
      "type": "object",
      "properties": {
        "cpu_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "memory_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "disk_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "last_updated_time": {
          "type": "string"
        }
      }
    },
    "clusterResourceSummary": {
      "type": "object",
      "properties": {
        "current_usage": {
          "type": "string"
        },
        "used": {
          "type": "string"
        },
        "total": {
          "type": "string"
        },
        "health_state": {
          "type": "string"
        }
      },
      "title": "Summary of Crosswork Resources"
    }
  }
}