{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-runner-schema.json",
  "title": "Runner",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-runners-api-openapi.yml#/components/schemas/Runner",
  "properties": {
    "id": {
      "description": "The ID of the runner",
      "type": "string"
    },
    "domain": {
      "description": "The domain of the runner",
      "type": "string"
    },
    "apiUrl": {
      "description": "The API URL of the runner",
      "type": "string"
    },
    "proxyUrl": {
      "description": "The proxy URL of the runner",
      "type": "string"
    },
    "cpu": {
      "description": "The CPU capacity of the runner",
      "type": "number"
    },
    "memory": {
      "description": "The memory capacity of the runner in GiB",
      "type": "number"
    },
    "disk": {
      "description": "The disk capacity of the runner in GiB",
      "type": "number"
    },
    "gpu": {
      "description": "The GPU capacity of the runner",
      "type": "number"
    },
    "gpuType": {
      "description": "The type of GPU",
      "type": "string"
    },
    "sandboxClass": {
      "allOf": [
        {
          "$ref": "#/$defs/SandboxClass"
        }
      ],
      "description": "The sandbox class supported by this runner"
    },
    "currentCpuUsagePercentage": {
      "description": "Current CPU usage percentage",
      "type": "number"
    },
    "currentMemoryUsagePercentage": {
      "description": "Current RAM usage percentage",
      "type": "number"
    },
    "currentDiskUsagePercentage": {
      "description": "Current disk usage percentage",
      "type": "number"
    },
    "currentAllocatedCpu": {
      "description": "Current allocated CPU",
      "type": "number"
    },
    "currentAllocatedMemoryGiB": {
      "description": "Current allocated memory in GiB",
      "type": "number"
    },
    "currentAllocatedDiskGiB": {
      "description": "Current allocated disk in GiB",
      "type": "number"
    },
    "currentSnapshotCount": {
      "description": "Current snapshot count",
      "type": "number"
    },
    "currentStartedSandboxes": {
      "description": "Current number of started sandboxes",
      "type": "number"
    },
    "availabilityScore": {
      "description": "Runner availability score",
      "type": "number"
    },
    "region": {
      "description": "The region of the runner",
      "type": "string"
    },
    "name": {
      "description": "The name of the runner",
      "type": "string"
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/RunnerState"
        }
      ],
      "description": "The state of the runner"
    },
    "lastChecked": {
      "description": "The last time the runner was checked",
      "type": "string"
    },
    "unschedulable": {
      "description": "Whether the runner is unschedulable",
      "type": "boolean"
    },
    "tags": {
      "description": "Tags associated with the runner",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "createdAt": {
      "description": "The creation timestamp of the runner",
      "type": "string"
    },
    "updatedAt": {
      "description": "The last update timestamp of the runner",
      "type": "string"
    },
    "version": {
      "deprecated": true,
      "description": "The version of the runner (deprecated in favor of apiVersion)",
      "type": "string"
    },
    "apiVersion": {
      "deprecated": true,
      "description": "The api version of the runner",
      "type": "string"
    },
    "runnerClass": {
      "allOf": [
        {
          "$ref": "#/$defs/RunnerClass"
        }
      ],
      "deprecated": true,
      "description": "The class of the runner. Deprecated and always returns \"container\" for backward compatibility - use sandboxClass instead."
    },
    "appVersion": {
      "deprecated": true,
      "description": "The app version of the runner",
      "type": "string"
    },
    "class": {
      "deprecated": true,
      "description": "Deprecated runner class property",
      "type": "string"
    }
  },
  "required": [
    "apiVersion",
    "cpu",
    "createdAt",
    "disk",
    "id",
    "memory",
    "name",
    "region",
    "runnerClass",
    "state",
    "tags",
    "unschedulable",
    "updatedAt",
    "version"
  ],
  "type": "object",
  "$defs": {
    "RunnerClass": {
      "description": "The class of the runner. Deprecated and always returns \"container\" for backward compatibility - use sandboxClass instead.",
      "enum": [
        "container"
      ],
      "type": "string"
    },
    "RunnerState": {
      "description": "The state of the runner",
      "enum": [
        "initializing",
        "ready",
        "disabled",
        "decommissioned",
        "unresponsive"
      ],
      "type": "string"
    },
    "SandboxClass": {
      "enum": [
        "linux-vm",
        "container",
        "windows"
      ],
      "type": "string",
      "x-enum-varnames": [
        "LINUX_VM",
        "CONTAINER",
        "WINDOWS"
      ]
    }
  }
}