{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-organization-usage-overview-schema.json",
  "title": "OrganizationUsageOverview",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-organizations-api-openapi.yml#/components/schemas/OrganizationUsageOverview",
  "properties": {
    "regionUsage": {
      "items": {
        "$ref": "#/$defs/RegionUsageOverview"
      },
      "type": "array"
    },
    "totalSnapshotQuota": {
      "type": "number"
    },
    "currentSnapshotUsage": {
      "type": "number"
    },
    "totalVolumeQuota": {
      "type": "number"
    },
    "currentVolumeUsage": {
      "type": "number"
    }
  },
  "required": [
    "currentSnapshotUsage",
    "currentVolumeUsage",
    "regionUsage",
    "totalSnapshotQuota",
    "totalVolumeQuota"
  ],
  "type": "object",
  "$defs": {
    "GpuType": {
      "enum": [
        "H100",
        "H200",
        "B300",
        "RTX-PRO-6000",
        "RTX-4090",
        "RTX-5090",
        "MI355X"
      ],
      "type": "string",
      "x-enum-varnames": [
        "H100",
        "H200",
        "B300",
        "RTX_PRO_6000",
        "RTX_4090",
        "RTX_5090",
        "MI355X"
      ]
    },
    "RegionUsageOverview": {
      "properties": {
        "regionId": {
          "type": "string"
        },
        "sandboxClass": {
          "allOf": [
            {
              "$ref": "#/$defs/SandboxClass"
            }
          ]
        },
        "totalCpuQuota": {
          "type": "number"
        },
        "currentCpuUsage": {
          "type": "number"
        },
        "totalMemoryQuota": {
          "type": "number"
        },
        "currentMemoryUsage": {
          "type": "number"
        },
        "totalDiskQuota": {
          "type": "number"
        },
        "currentDiskUsage": {
          "type": "number"
        },
        "totalGpuQuota": {
          "type": "number"
        },
        "currentGpuUsage": {
          "type": "number"
        },
        "allowedGpuTypes": {
          "items": {
            "$ref": "#/$defs/GpuType"
          },
          "type": "array"
        },
        "maxCpuPerSandbox": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxMemoryPerSandbox": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxDiskPerSandbox": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxDiskPerNonEphemeralSandbox": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxCpuPerGpu": {
          "description": "CPU maximum per requested GPU unit for GPU sandboxes.",
          "type": [
            "number",
            "null"
          ]
        },
        "maxMemoryPerGpu": {
          "description": "Memory maximum per requested GPU unit for GPU sandboxes.",
          "type": [
            "number",
            "null"
          ]
        },
        "maxDiskPerGpu": {
          "description": "Disk maximum per requested GPU unit for GPU sandboxes.",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "currentCpuUsage",
        "currentDiskUsage",
        "currentGpuUsage",
        "currentMemoryUsage",
        "maxCpuPerGpu",
        "maxCpuPerSandbox",
        "maxDiskPerGpu",
        "maxDiskPerNonEphemeralSandbox",
        "maxDiskPerSandbox",
        "maxMemoryPerGpu",
        "maxMemoryPerSandbox",
        "regionId",
        "sandboxClass",
        "totalCpuQuota",
        "totalDiskQuota",
        "totalGpuQuota",
        "totalMemoryQuota"
      ],
      "type": "object"
    },
    "SandboxClass": {
      "enum": [
        "linux-vm",
        "container",
        "windows"
      ],
      "type": "string",
      "x-enum-varnames": [
        "LINUX_VM",
        "CONTAINER",
        "WINDOWS"
      ]
    }
  }
}