{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Host",
  "title": "Host",
  "type": "object",
  "description": "A render host machine",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique host identifier",
      "example": "host-jkl012"
    },
    "name": {
      "type": "string",
      "description": "Hostname",
      "example": "render-host-001.studio.local"
    },
    "state": {
      "type": "string",
      "description": "Host state",
      "example": "UP",
      "enum": [
        "UP",
        "DOWN",
        "REPAIR"
      ]
    },
    "lock": {
      "type": "string",
      "description": "Host lock state",
      "example": "OPEN",
      "enum": [
        "OPEN",
        "LOCKED",
        "NIMBY_LOCKED"
      ]
    },
    "totalCores": {
      "type": "integer",
      "description": "Total CPU cores on the host",
      "example": 64
    },
    "idleCores": {
      "type": "integer",
      "description": "Currently idle CPU cores",
      "example": 32
    },
    "totalMemory": {
      "type": "integer",
      "description": "Total memory in MB",
      "example": 131072
    },
    "idleMemory": {
      "type": "integer",
      "description": "Currently idle memory in MB",
      "example": 65536
    },
    "load": {
      "type": "integer",
      "description": "Current system load (percentage)",
      "example": 35
    }
  }
}