> For the complete documentation index, see [llms.txt](https://docs.cedana.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cedana.ai/references/api/models.md).

# Models

## The Action object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Action":{"properties":{"action_id":{"format":"uuid","type":"string"},"action_timestamp":{"format":"date-time","type":["string","null"]},"checkpoint_completed_timestamp":{"format":"date-time","type":["string","null"]},"checkpoint_id":{"format":"uuid","type":"string"},"checkpoint_name":{"description":"The checkpoint's CEDANA_CHECKPOINT name (the env value it restores from),\nused to group automatic/named checkpoints. Null for unnamed checkpoints.","type":["string","null"]},"checkpoint_status":{"type":"string"},"checksum":{"description":"GPU state checksum recorded with the checkpoint (\"sha256:<hex>\"); null when not computed","type":["string","null"]},"delta":{"description":"Whether the checkpoint is a (GPU delta) increment. Authoritative even\nwhen parent_checkpoint_id is null (malformed id at ingest, parent deleted)","type":["boolean","null"]},"details":{},"gpu":{"type":"string"},"node_name":{"type":["string","null"]},"parent_checkpoint_id":{"description":"Checkpoint this one is an increment of; null for full checkpoints and\nfor deltas whose parent is unknown or deleted","format":"uuid","type":["string","null"]},"platform":{"type":"string"},"pod_annotations":{},"pod_labels":{"description":"Labels and annotations of the checkpointed pod as the controller uploaded them at\ncheckpoint time; null when no pod spec was uploaded"},"reason":{"type":["string","null"]},"status":{"type":"string"},"total_duration":{"format":"int64","type":["integer","null"]},"total_io":{"format":"int64","type":["integer","null"]},"type":{"type":"string"},"workload_kind":{"description":"Owning workload kind of the checkpointed pod: \"DynamoGraphDeployment\" when\nthe pod belongs to a Dynamo deployment, else the pod's immediate\nownerReferences kind (ReplicaSet/Job/StatefulSet…). Null if unknown.","type":["string","null"]}},"required":["action_id","checkpoint_id","status","checkpoint_status","type","details","gpu","platform"],"type":"object"}}}}
```

## The ActionDetails object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ActionDetails":{"description":"Action details response for a single action","properties":{"action_id":{"description":"The action ID","format":"uuid","type":"string"},"action_timestamp":{"description":"When the action was created","format":"date-time","type":["string","null"]},"checkpoint_completed_timestamp":{"description":"When checkpoint completed (if any)","format":"date-time","type":["string","null"]},"checkpoint_id":{"description":"Associated checkpoint ID (if any)","format":"uuid","type":["string","null"]},"checkpoint_info":{"description":"Full checkpoint profiling info (JSON)"},"checkpoint_name":{"description":"Checkpoint name/image","type":["string","null"]},"checkpoint_size":{"description":"Checkpoint size in bytes","format":"int64","type":["integer","null"]},"details":{"description":"Original request details (JSONB)"},"gpu":{"description":"GPU type used","type":["string","null"]},"node_name":{"description":"Node where the pod was running","type":["string","null"]},"platform":{"description":"Platform (e.g., containerd)","type":["string","null"]},"reason":{"description":"Reason for the action (heartbeat, manual, nodeTermination, etc.)","type":["string","null"]},"restore_path":{"description":"Restore path for the checkpoint","type":["string","null"]},"status":{"description":"Current status of the action","type":"string"},"total_duration":{"description":"Checkpoint duration in nanoseconds (from profiling)","format":"int64","type":["integer","null"]},"total_io":{"description":"Total I/O in bytes (from profiling)","format":"int64","type":["integer","null"]},"type":{"description":"Action type (checkpoint_pod, restore_pod, heartbeat)","type":"string"}},"required":["action_id","type","status","details"],"type":"object"}}}}
```

## The ActiveNode object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ActiveNode":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"cluster_name":{"type":"string"},"gpu_product":{"type":["string","null"]},"gpus":{"description":"Physical GPUs on the node; null for a node without NVIDIA GPUs","format":"int64","type":["integer","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"pod_gpus":{"description":"nvidia.com/gpu requested by those pods","format":"int64","type":"integer"},"pods":{"description":"Running pods on this node with `runtimeClassName: cedana`, by name","items":{"$ref":"#/components/schemas/ActivePod"},"type":"array"}},"required":["id","name","cluster_id","cluster_name","pods","pod_gpus"],"type":"object"},"ActivePod":{"properties":{"gpus":{"description":"nvidia.com/gpu requested by the pod's containers","format":"int64","type":"integer"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"start_time":{"description":"status.startTime","type":["string","null"]}},"required":["id","name","namespace","gpus"],"type":"object"}}}}
```

## The ActiveNodesResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ActiveNodesResponse":{"description":"Live nodes in scope, and the ones running at least one Cedana-managed pod","properties":{"nodes":{"description":"Nodes with a running Cedana-managed pod, most managed pods first","items":{"$ref":"#/components/schemas/ActiveNode"},"type":"array"},"total_gpu_nodes":{"description":"Live nodes in scope with NVIDIA GPUs","format":"int64","type":"integer"},"total_gpus":{"description":"Physical GPUs across the live nodes in scope","format":"int64","type":"integer"},"total_nodes":{"description":"Live nodes in scope, managed pods or not","format":"int64","type":"integer"}},"required":["nodes","total_nodes","total_gpu_nodes","total_gpus"],"type":"object"},"ActiveNode":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"cluster_name":{"type":"string"},"gpu_product":{"type":["string","null"]},"gpus":{"description":"Physical GPUs on the node; null for a node without NVIDIA GPUs","format":"int64","type":["integer","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"pod_gpus":{"description":"nvidia.com/gpu requested by those pods","format":"int64","type":"integer"},"pods":{"description":"Running pods on this node with `runtimeClassName: cedana`, by name","items":{"$ref":"#/components/schemas/ActivePod"},"type":"array"}},"required":["id","name","cluster_id","cluster_name","pods","pod_gpus"],"type":"object"},"ActivePod":{"properties":{"gpus":{"description":"nvidia.com/gpu requested by the pod's containers","format":"int64","type":"integer"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"start_time":{"description":"status.startTime","type":["string","null"]}},"required":["id","name","namespace","gpus"],"type":"object"}}}}
```

## The ActivePod object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ActivePod":{"properties":{"gpus":{"description":"nvidia.com/gpu requested by the pod's containers","format":"int64","type":"integer"},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"start_time":{"description":"status.startTime","type":["string","null"]}},"required":["id","name","namespace","gpus"],"type":"object"}}}}
```

## The Alert object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Alert":{"properties":{"date_threshold":{"type":["string","null"]},"spend_threshold":{"type":["string","null"]}},"type":"object"}}}}
```

## The AlertWebhook object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AlertWebhook":{"description":"A webhook as listed; the URL is masked since Slack webhook URLs are credentials.","properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"url":{"type":"string"}},"required":["id","url","enabled","created_at"],"type":"object"}}}}
```

## The AuthorizeRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AuthorizeRequest":{"properties":{"estimated_prompt_tokens":{"format":"int64","type":"integer"},"logical_model":{"type":"string"},"request_id":{"type":"string"}},"required":["request_id","logical_model"],"type":"object"}}}}
```

## The AuthorizeResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AuthorizeResponse":{"properties":{"authorization_id":{"format":"uuid","type":"string"},"cacheable":{"description":"The gateway may reuse this decision briefly: true only for keys with no rate limit or\nbudget, which are charged on every authorize.","type":"boolean"},"expires_at":{"format":"date-time","type":"string"},"key_id":{"description":"The key the caller presented; the gateway echoes it in telemetry so usage keeps it\nfor requests served from its authorization cache.","type":["string","null"]},"route_generation":{"format":"int64","type":"integer"}},"required":["authorization_id","route_generation","expires_at","cacheable"],"type":"object"}}}}
```

## The AutoDelete object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AutoDelete":{"properties":{"date_threshold":{"type":["string","null"]},"spend_threshold":{"type":["string","null"]}},"type":"object"}}}}
```

## The AutoRestorePolicyInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AutoRestorePolicyInfo":{"description":"Auto-restore policy info - represents pods/jobs with CEDANA_CHECKPOINT env var","properties":{"checkpoint_id":{"description":"The CEDANA_CHECKPOINT value (checkpoint name)","type":"string"},"cluster_id":{"description":"Cluster ID","type":"string"},"created_at":{"description":"When the resource was created","type":["string","null"]},"id":{"description":"Virtual ID based on the job/pod ID","type":"string"},"name":{"description":"The job or pod name","type":"string"},"namespace":{"description":"Namespace of the resource","type":"string"},"pod_count":{"description":"Number of pods (1 for pods, count for jobs)","format":"int32","type":"integer"},"policy_status":{"description":"Mapped policy status: \"active\", \"completed\", or \"disabled\"","type":"string"},"resource_type":{"description":"Type of resource: \"job\" or \"pod\"","type":"string"},"status":{"description":"Original job/pod status","type":"string"}},"required":["id","name","namespace","cluster_id","resource_type","checkpoint_id","pod_count","status","policy_status"],"type":"object"}}}}
```

## The AvailableFilters object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"AvailableFilters":{"properties":{"namespaces":{"items":{"type":"string"},"type":"array"},"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses","namespaces"],"type":"object"}}}}
```

## The BurstingConfigStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"BurstingConfigStatus":{"enum":["not_configured","configured","invalid"],"type":"string"}}}}
```

## The BurstingStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"BurstingStatus":{"properties":{"can_use_bursting":{"type":"boolean"},"message":{"type":"string"},"status":{"$ref":"#/components/schemas/BurstingConfigStatus"}},"required":["status","message","can_use_bursting"],"type":"object"},"BurstingConfigStatus":{"enum":["not_configured","configured","invalid"],"type":"string"}}}}
```

## The CedanaJobCheckpoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CedanaJobCheckpoint":{"properties":{"ID":{"type":"string"},"JID":{"type":"string"},"Path":{"type":"string"},"Size":{"format":"int64","type":"integer"},"Time":{"format":"int64","type":"integer"}},"required":["JID","Path","Time","Size"],"type":"object"}}}}
```

## The Checkpoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Checkpoint":{"description":"Checkpoint is basic unit for cedana service operation\nit stores all the information regarding the snapshot we can use to save and then restore state","properties":{"checksum":{"type":["string","null"]},"delta":{"description":"Whether this checkpoint is a (GPU delta) increment. Authoritative even\nwhen parent_checkpoint_id is null (malformed id at ingest, parent deleted)","type":"boolean"},"gpu":{"type":"string"},"id":{"format":"uuid","type":"string"},"info":{},"name":{"type":["string","null"]},"parent_checkpoint_id":{"description":"Checkpoint this one is an increment of; null for full checkpoints and\nfor deltas whose parent is unknown or deleted","format":"uuid","type":["string","null"]},"platform":{"type":"string"},"status":{"$ref":"#/components/schemas/CheckpointStatus"}},"required":["id","status","gpu","platform","delta"],"type":"object"},"CheckpointStatus":{"enum":["initializing","updated_info","possibly_uploaded","ready","deprecated"],"type":"string"}}}}
```

## The CheckpointActionConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"}}}}
```

## The CheckpointFileEntry object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointFileEntry":{"description":"A file inside a checkpoint: an archive member, or a child of a checkpoint directory","properties":{"is_dir":{"type":"boolean"},"mod_time":{"description":"Modification time, Unix ms","format":"int64","type":"integer"},"name":{"type":"string"},"size":{"description":"Size in bytes","format":"int64","type":"integer"}},"required":["name","size","mod_time","is_dir"],"type":"object"}}}}
```

## The CheckpointInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointInfo":{"properties":{"gpu":{"type":"string"},"info":{},"platform":{"type":"string"}},"required":["gpu","platform"],"type":"object"}}}}
```

## The CheckpointKind object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointKind":{"enum":["simple","rootfs","rootfsonly"],"type":"string"}}}}
```

## The CheckpointOperationStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointOperationStatus":{"enum":["initialized","processing","checkpoint_created","ready","error","not_found"],"type":"string"}}}}
```

## The CheckpointOverrides object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointOverrides":{"properties":{"asynchronous":{"type":"boolean"},"compression":{"type":["string","null"]},"criu_opts":{"type":["string","null"]},"directory":{"type":["string","null"]},"incremental":{"description":"GPU delta (incremental) checkpoint; None = cluster default","type":["boolean","null"]},"streams":{"format":"int32","type":"integer"}},"type":"object"}}}}
```

## The CheckpointPod object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointPod":{"properties":{"action_id":{"readOnly":true,"type":["string","null"]},"cluster_id":{"type":["string","null"]},"kind":{"$ref":"#/components/schemas/CheckpointKind"},"namespace":{"type":["string","null"]},"overrides":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CheckpointOverrides"}]},"pod_id":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"reason":{"$ref":"#/components/schemas/CheckpointReason"}},"type":"object"},"CheckpointKind":{"enum":["simple","rootfs","rootfsonly"],"type":"string"},"CheckpointOverrides":{"properties":{"asynchronous":{"type":"boolean"},"compression":{"type":["string","null"]},"criu_opts":{"type":["string","null"]},"directory":{"type":["string","null"]},"incremental":{"description":"GPU delta (incremental) checkpoint; None = cluster default","type":["boolean","null"]},"streams":{"format":"int32","type":"integer"}},"type":"object"},"CheckpointReason":{"enum":["heartbeat","manual","maintenance"],"type":"string"}}}}
```

## The CheckpointReason object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointReason":{"enum":["heartbeat","manual","maintenance"],"type":"string"}}}}
```

## The CheckpointSlurmJob object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointSlurmJob":{"properties":{"action_id":{"readOnly":true,"type":["string","null"]},"cluster_id":{"type":"string"},"job_id":{"type":["string","null"]},"job_name":{"type":["string","null"]},"kind":{"$ref":"#/components/schemas/SlurmCheckpointKind"},"reason":{"$ref":"#/components/schemas/SlurmCheckpointReason"}},"required":["cluster_id"],"type":"object"},"SlurmCheckpointKind":{"enum":["simple","rootfs","rootfsonly"],"type":"string"},"SlurmCheckpointReason":{"enum":["heartbeat","manual","maintenance","preemption"],"type":"string"}}}}
```

## The CheckpointStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointStatus":{"enum":["initializing","updated_info","possibly_uploaded","ready","deprecated"],"type":"string"}}}}
```

## The CheckpointStatusWithPodSpec object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointStatusWithPodSpec":{"properties":{"action_id":{"type":"string"},"persistent_volume_claim":{},"pod_id":{"type":["string","null"]},"pod_metadata_spec":{},"pod_spec":{},"status":{"type":"string"}},"required":["status","action_id"],"type":"object"}}}}
```

## The CheckpointStorage object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointStorage":{"properties":{"checkpoint_id":{"type":"string"},"events":{"description":"Checkpoint, restore and CSX storage events for this checkpoint, oldest first.","items":{"$ref":"#/components/schemas/NotificationEvent"},"type":"array"},"residency":{"description":"Where the checkpoint lives now, per node and tier.","items":{"$ref":"#/components/schemas/Residency"},"type":"array"},"truncated":{"description":"More events exist than were returned; only the newest are included.","type":"boolean"},"write":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CsxWrite","description":"Set while the checkpoint is still being written."}]}},"required":["checkpoint_id","residency","events","truncated"],"type":"object"},"NotificationEvent":{"properties":{"action":{"description":"Storage rows: the CSX action (cached, evicted, persisted, read_closed, write_closed, ...); empty otherwise.","type":"string"},"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"cluster_id":{"type":"string"},"context":{"type":"string"},"description":{"type":"string"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"failure_reason":{"type":"string"},"failure_stage":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"node_name":{"type":"string"},"operation":{"type":"string"},"pause_ns":{"description":"Checkpoints: time the workload was held (see facts::checkpoint_pause_ns).","format":"int64","minimum":0,"type":"integer"},"physical_bytes":{"format":"int64","minimum":0,"type":"integer"},"pod_ready_at_ms":{"format":"int64","type":["integer","null"]},"pod_scheduled_at_ms":{"description":"Restores: PodScheduled / Ready transitions of the restored pod, once known.","format":"int64","type":["integer","null"]},"pod_uid":{"type":"string"},"read":{"type":"boolean"},"restore_uuid":{"type":"string"},"result":{"type":"string"},"storage_tier":{"type":"string"},"timestamp":{"type":"string"},"type":{"type":"string"},"workload_type":{"type":"string"},"write_target":{"description":"Write rows: where the write landed, tmpfs (the buffer) or nfs; empty otherwise.","type":"string"}},"required":["id","timestamp","type","operation","result","description","context","read","cluster_id","workload_type","node_name","pod_uid","name","namespace","action_id","checkpoint_id","restore_uuid","storage_tier","failure_stage","failure_reason","duration_ns","physical_bytes","pause_ns","action","write_target"],"type":"object"},"Residency":{"description":"Where a checkpoint currently lives. `node_name` is empty for NFS, which every node shares.","properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting | copying | present","type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","state","bytes","since_ms"],"type":"object"},"CsxWrite":{"description":"A checkpoint still being written on a node; it lives on no tier until it reaches NFS.","properties":{"bytes":{"description":"0 while the write is still open.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting","type":"string"},"target":{"description":"tmpfs (the write buffer) or nfs (written straight to NFS)","type":"string"}},"required":["node_name","target","state","since_ms","bytes"],"type":"object"}}}}
```

## The CheckpointSuccessInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CheckpointSuccessInfo":{"properties":{"restore_path":{"type":["string","null"]}},"type":"object"}}}}
```

## The Cluster object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Cluster":{"properties":{"id":{"format":"uuid","type":"string"},"kind":{"type":"string"},"last_sync":{"format":"date-time","type":["string","null"]},"metadata":{},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status","kind"],"type":"object"}}}}
```

## The ClusterGateway object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ClusterGateway":{"description":"A cluster's inference gateway as callers outside the cluster reach it.","properties":{"cluster_id":{"format":"uuid","type":"string"},"cluster_name":{"type":"string"},"gateway_url":{"description":"Public OpenAI base origin (Ingress/LoadBalancer); None means in-cluster only.","type":["string","null"]}},"required":["cluster_id","cluster_name"],"type":"object"}}}}
```

## The ClusterResidency object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ClusterResidency":{"properties":{"checkpoints":{"description":"Checkpoints that still live somewhere, newest first.","items":{"$ref":"#/components/schemas/CsxCheckpoint"},"type":"array"},"nfs_bytes":{"format":"int64","minimum":0,"type":"integer"},"nfs_checkpoints":{"format":"int32","minimum":0,"type":"integer"},"nodes":{"items":{"$ref":"#/components/schemas/CsxNode"},"type":"array"}},"required":["nodes","nfs_bytes","nfs_checkpoints","checkpoints"],"type":"object"},"CsxCheckpoint":{"properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"checkpoint_id":{"type":"string"},"first_seen_ms":{"format":"int64","type":"integer"},"last_event_ms":{"format":"int64","type":"integer"},"last_read":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CsxRead"}]},"name":{"type":"string"},"namespace":{"type":"string"},"reads":{"format":"int32","minimum":0,"type":"integer"},"residency":{"items":{"$ref":"#/components/schemas/Residency"},"type":"array"},"write":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CsxWrite","description":"Set while the checkpoint is still being written."}]}},"required":["checkpoint_id","name","namespace","bytes","first_seen_ms","last_event_ms","residency","reads"],"type":"object"},"CsxRead":{"properties":{"at_ms":{"format":"int64","type":"integer"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","at_ms","duration_ns"],"type":"object"},"Residency":{"description":"Where a checkpoint currently lives. `node_name` is empty for NFS, which every node shares.","properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting | copying | present","type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","state","bytes","since_ms"],"type":"object"},"CsxWrite":{"description":"A checkpoint still being written on a node; it lives on no tier until it reaches NFS.","properties":{"bytes":{"description":"0 while the write is still open.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting","type":"string"},"target":{"description":"tmpfs (the write buffer) or nfs (written straight to NFS)","type":"string"}},"required":["node_name","target","state","since_ms","bytes"],"type":"object"},"CsxNode":{"properties":{"disk_checkpoints":{"format":"int32","minimum":0,"type":"integer"},"disk_limit_bytes":{"format":"int64","minimum":0,"type":"integer"},"disk_used_bytes":{"format":"int64","minimum":0,"type":"integer"},"memory_checkpoints":{"format":"int32","minimum":0,"type":"integer"},"memory_limit_bytes":{"format":"int64","minimum":0,"type":"integer"},"memory_used_bytes":{"description":"Includes copies in flight, which CSX reserves up front.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"started_ms":{"description":"Last CSX start; the node's caches were empty then.","format":"int64","type":["integer","null"]},"version":{"type":"string"},"write_buffer_bytes":{"description":"Bytes of finished writes still in the tmpfs buffer, waiting to be persisted to NFS.","format":"int64","minimum":0,"type":"integer"},"writes_in_flight":{"format":"int32","minimum":0,"type":"integer"}},"required":["node_name","version","memory_limit_bytes","disk_limit_bytes","memory_used_bytes","disk_used_bytes","write_buffer_bytes","writes_in_flight","memory_checkpoints","disk_checkpoints"],"type":"object"}}}}
```

## The ClusterSavings object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ClusterSavings":{"properties":{"cluster_id":{"type":"string"},"elapsed_ns":{"format":"int64","minimum":0,"type":"integer"},"first_ms":{"format":"int64","type":"integer"},"measured_nodes":{"description":"Nodes with a `measured_since_ms`; only these count toward the per-node averages.","format":"int64","minimum":0,"type":"integer"},"nodes":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"saved_per_day_per_node_ns":{"description":"Mean of the measured nodes' `saved_per_day_ns`.","format":"double","type":"number"},"saved_per_month_per_node_ns":{"description":"Mean of the measured nodes' `saved_per_month_ns`.","format":"double","type":"number"},"savings_pairs":{"format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","nodes","first_ms","elapsed_ns","savings_pairs","saved_ns","measured_nodes","saved_per_day_per_node_ns","saved_per_month_per_node_ns"],"type":"object"}}}}
```

## The ClusterSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ClusterSyncRequest":{"properties":{"cluster_id":{"format":"uuid","type":["string","null"]},"metadata":{},"resource":{"$ref":"#/components/schemas/K8sResource"}},"type":"object"},"K8sResource":{"description":"A Kubernetes resource tagged by \"type\", with the resource's raw JSON fields alongside the tag","properties":{"type":{"enum":["None","Pod","Node","Job","DynamoGraphDeployment","DynamoService"],"type":"string"}},"required":["type"],"title":"K8sResource","type":"object"}}}}
```

## The CostConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CostConfig":{"properties":{"node_hourly_usd":{"format":"double","type":"number"},"profile_id":{"type":"string"},"storage_gb_hour_usd":{"format":"double","type":"number"},"transfer_gb_usd":{"format":"double","type":"number"}},"required":["profile_id","node_hourly_usd","storage_gb_hour_usd","transfer_gb_usd"],"type":"object"}}}}
```

## The CostConfigUpsert object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CostConfigUpsert":{"properties":{"node_hourly_usd":{"format":"double","type":"number"},"profile_id":{"type":"string"},"storage_gb_hour_usd":{"format":"double","type":"number"},"transfer_gb_usd":{"format":"double","type":"number"}},"required":["profile_id"],"type":"object"}}}}
```

## The CostSavingsEstimate object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CostSavingsEstimate":{"description":"Cost savings estimate with user-provided hourly rate","properties":{"checkpoint_overhead_cost":{"description":"Cost of checkpoint overhead (time spent checkpointing)","format":"double","type":"number"},"hourly_rate":{"description":"User-provided hourly compute cost","format":"double","type":"number"},"max_recovery_point_seconds":{"description":"Maximum potential data loss on failure (seconds) - worst case recovery point","format":"double","type":"number"},"max_savings_per_failure":{"description":"Estimated maximum cost saved per failure event\n(time_protected - max_recovery_point) * hourly_rate / 3600","format":"double","type":"number"},"net_potential_savings":{"description":"Net potential savings = max_savings - overhead_cost","format":"double","type":"number"},"pods_protected":{"description":"Number of pods protected","format":"int64","type":"integer"},"time_protected_seconds":{"description":"Total time protected by checkpoints (seconds)","format":"double","type":"number"},"total_checkpoints":{"description":"Total checkpoints taken","format":"int64","type":"integer"}},"required":["time_protected_seconds","max_recovery_point_seconds","hourly_rate","max_savings_per_failure","checkpoint_overhead_cost","net_potential_savings","pods_protected","total_checkpoints"],"type":"object"}}}}
```

## The CpuInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CpuInfo":{"description":"CPU of one node.","properties":{"allocatable_cores":{"description":"CPUs the scheduler can hand out, after system reservations","format":"double","type":["number","null"]},"architecture":{"description":"\"amd64\" or \"arm64\"","type":["string","null"]},"cores":{"description":"Logical CPUs on the node","format":"double","type":["number","null"]},"hyperthreading":{"description":"Whether SMT/hyper-threading is on (Node Feature Discovery)","type":["boolean","null"]},"hypervisor":{"description":"Hypervisor the node runs under, e.g. \"kvm\"; newer NFD versions only","type":["string","null"]},"isa_level":{"description":"Highest x86-64 microarchitecture level, e.g. \"x86-64-v4\" (Node Feature Discovery)","type":["string","null"]},"vendor":{"description":"\"Intel\" or \"AMD\" (Node Feature Discovery)","type":["string","null"]},"virtualized":{"description":"Whether the node is a VM, from the CPUID hypervisor flag (Node Feature Discovery)","type":["boolean","null"]}},"type":"object"}}}}
```

## The CreateClusterRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateClusterRequest":{"description":"CreateClusterRequest is the request body for creating a cluster","properties":{"cluster_name":{"type":"string"},"kind":{"description":"Cluster kind: \"kubernetes\" (default) or \"slurm\"","type":["string","null"]}},"required":["cluster_name"],"type":"object"}}}}
```

## The CreateInferenceKey object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateInferenceKey":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"models":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"tenant_id":{"type":["string","null"]}},"required":["name"],"type":"object"}}}}
```

## The CreateInstanceRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateInstanceRequest":{"properties":{"alert":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Alert"}]},"auto_delete":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AutoDelete"}]},"cloud":{"type":"string"},"envs":{"items":{"$ref":"#/components/schemas/EnvironmentVariable"},"type":["array","null"]},"launch_configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LaunchConfiguration"}]},"name":{"type":"string"},"os":{"type":["string","null"]},"region":{"type":"string"},"shade_cloud":{"type":"boolean"},"shade_instance_type":{"type":"string"},"ssh_key_id":{"type":["string","null"]},"tags":{"items":{"type":"string"},"type":["array","null"]},"template_id":{"type":["string","null"]},"volume_ids":{"items":{"type":"string"},"type":["array","null"]},"volume_mount":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/VolumeMount"}]}},"required":["cloud","region","shade_instance_type","shade_cloud","name"],"type":"object"},"Alert":{"properties":{"date_threshold":{"type":["string","null"]},"spend_threshold":{"type":["string","null"]}},"type":"object"},"AutoDelete":{"properties":{"date_threshold":{"type":["string","null"]},"spend_threshold":{"type":["string","null"]}},"type":"object"},"EnvironmentVariable":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"type":"object"},"LaunchConfiguration":{"properties":{"docker_configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DockerConfiguration"}]},"script_configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ScriptConfiguration"}]},"type":{"type":"string"}},"required":["type"],"type":"object"},"DockerConfiguration":{"properties":{"args":{"type":["string","null"]},"envs":{"items":{"$ref":"#/components/schemas/EnvironmentVariable"},"type":["array","null"]},"image":{"type":"string"},"port_mappings":{"items":{"$ref":"#/components/schemas/PortMapping"},"type":["array","null"]},"registry_credentials":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RegistryCredentials"}]},"shared_memory_in_gb":{"format":"int32","type":["integer","null"]},"volume_mounts":{"items":{"$ref":"#/components/schemas/VolumeMapping"},"type":["array","null"]}},"required":["image"],"type":"object"},"PortMapping":{"properties":{"container_port":{"format":"int32","type":"integer"},"host_port":{"format":"int32","type":"integer"}},"required":["host_port","container_port"],"type":"object"},"RegistryCredentials":{"properties":{"password":{"type":"string"},"username":{"type":"string"}},"required":["username","password"],"type":"object"},"VolumeMapping":{"properties":{"container_path":{"type":"string"},"host_path":{"type":"string"}},"required":["host_path","container_path"],"type":"object"},"ScriptConfiguration":{"properties":{"base64_script":{"type":"string"}},"required":["base64_script"],"type":"object"},"VolumeMount":{"properties":{"auto":{"type":["boolean","null"]}},"type":"object"}}}}
```

## The CreateInstanceResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateInstanceResponse":{"properties":{"cloud_provider":{"type":"string"},"instance_id":{"type":"string"},"instance_type":{"type":"string"},"region":{"type":"string"},"status":{"type":"string"}},"required":["instance_id","status","cloud_provider","region","instance_type"],"type":"object"}}}}
```

## The CreateMaintenanceWindow object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateMaintenanceWindow":{"properties":{"end_time":{"format":"date-time","type":"string"},"nodes":{"items":{"type":"string"},"type":["array","null"]},"partitions":{"items":{"type":"string"},"type":["array","null"]},"reason":{"type":"string"},"start_time":{"format":"date-time","type":"string"},"status":{"type":["string","null"]}},"required":["start_time","end_time","reason"],"type":"object"}}}}
```

## The CreateProfile object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateProfile":{"properties":{"cluster_id":{"format":"uuid","type":["string","null"]},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"logical_model":{"description":"The name callers use; defaults to the profile id.","type":["string","null"]},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"model":{"$ref":"#/components/schemas/ModelSpec"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"Kept as is when omitted on an update.","type":["string","null"]}},"required":["profile_id","model"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"}}}}
```

## The CreateWebhook object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreateWebhook":{"properties":{"enabled":{"type":"boolean"},"url":{"type":"string"}},"required":["url"],"type":"object"}}}}
```

## The CreatedInferenceKey object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CreatedInferenceKey":{"allOf":[{"$ref":"#/components/schemas/InferenceKeyView"},{"properties":{"raw_key":{"description":"The raw key, shown exactly once at creation.","type":"string"}},"required":["raw_key"],"type":"object"}]},"InferenceKeyView":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"created_at":{"format":"date-time","type":"string"},"key_id":{"type":"string"},"models":{},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"revoked_at":{"format":"date-time","type":["string","null"]},"tenant_id":{"type":["string","null"]}},"required":["key_id","name","models","created_at"],"type":"object"}}}}
```

## The CsxCheckpoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CsxCheckpoint":{"properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"checkpoint_id":{"type":"string"},"first_seen_ms":{"format":"int64","type":"integer"},"last_event_ms":{"format":"int64","type":"integer"},"last_read":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CsxRead"}]},"name":{"type":"string"},"namespace":{"type":"string"},"reads":{"format":"int32","minimum":0,"type":"integer"},"residency":{"items":{"$ref":"#/components/schemas/Residency"},"type":"array"},"write":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CsxWrite","description":"Set while the checkpoint is still being written."}]}},"required":["checkpoint_id","name","namespace","bytes","first_seen_ms","last_event_ms","residency","reads"],"type":"object"},"CsxRead":{"properties":{"at_ms":{"format":"int64","type":"integer"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","at_ms","duration_ns"],"type":"object"},"Residency":{"description":"Where a checkpoint currently lives. `node_name` is empty for NFS, which every node shares.","properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting | copying | present","type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","state","bytes","since_ms"],"type":"object"},"CsxWrite":{"description":"A checkpoint still being written on a node; it lives on no tier until it reaches NFS.","properties":{"bytes":{"description":"0 while the write is still open.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting","type":"string"},"target":{"description":"tmpfs (the write buffer) or nfs (written straight to NFS)","type":"string"}},"required":["node_name","target","state","since_ms","bytes"],"type":"object"}}}}
```

## The CsxNode object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CsxNode":{"properties":{"disk_checkpoints":{"format":"int32","minimum":0,"type":"integer"},"disk_limit_bytes":{"format":"int64","minimum":0,"type":"integer"},"disk_used_bytes":{"format":"int64","minimum":0,"type":"integer"},"memory_checkpoints":{"format":"int32","minimum":0,"type":"integer"},"memory_limit_bytes":{"format":"int64","minimum":0,"type":"integer"},"memory_used_bytes":{"description":"Includes copies in flight, which CSX reserves up front.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"started_ms":{"description":"Last CSX start; the node's caches were empty then.","format":"int64","type":["integer","null"]},"version":{"type":"string"},"write_buffer_bytes":{"description":"Bytes of finished writes still in the tmpfs buffer, waiting to be persisted to NFS.","format":"int64","minimum":0,"type":"integer"},"writes_in_flight":{"format":"int32","minimum":0,"type":"integer"}},"required":["node_name","version","memory_limit_bytes","disk_limit_bytes","memory_used_bytes","disk_used_bytes","write_buffer_bytes","writes_in_flight","memory_checkpoints","disk_checkpoints"],"type":"object"}}}}
```

## The CsxRead object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CsxRead":{"properties":{"at_ms":{"format":"int64","type":"integer"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","at_ms","duration_ns"],"type":"object"}}}}
```

## The CsxWrite object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"CsxWrite":{"description":"A checkpoint still being written on a node; it lives on no tier until it reaches NFS.","properties":{"bytes":{"description":"0 while the write is still open.","format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting","type":"string"},"target":{"description":"tmpfs (the write buffer) or nfs (written straight to NFS)","type":"string"}},"required":["node_name","target","state","since_ms","bytes"],"type":"object"}}}}
```

## The DeploymentProfile object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"DeploymentProfile":{"properties":{"backend_url":{"type":"string"},"checkpoint_name":{"description":"The `CEDANA_CHECKPOINT` name its workers restore from.","type":"string"},"cluster_id":{"format":"uuid","type":["string","null"]},"desired_replicas":{"format":"int32","type":"integer"},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"exact_model":{"type":"string"},"logical_model":{"type":"string"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"profile_revision":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"spec":{"$ref":"#/components/schemas/ModelSpec"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"The team whose policy and caps apply; null for none.","type":["string","null"]}},"required":["profile_id","logical_model","exact_model","profile_revision","backend_url","estimated_cold_start_ms","namespace","checkpoint_name","spec","min_replicas","max_replicas","target_concurrency","max_queue_depth","scale_down_idle_seconds","desired_replicas"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"}}}}
```

## The DockerConfiguration object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"DockerConfiguration":{"properties":{"args":{"type":["string","null"]},"envs":{"items":{"$ref":"#/components/schemas/EnvironmentVariable"},"type":["array","null"]},"image":{"type":"string"},"port_mappings":{"items":{"$ref":"#/components/schemas/PortMapping"},"type":["array","null"]},"registry_credentials":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RegistryCredentials"}]},"shared_memory_in_gb":{"format":"int32","type":["integer","null"]},"volume_mounts":{"items":{"$ref":"#/components/schemas/VolumeMapping"},"type":["array","null"]}},"required":["image"],"type":"object"},"EnvironmentVariable":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"type":"object"},"PortMapping":{"properties":{"container_port":{"format":"int32","type":"integer"},"host_port":{"format":"int32","type":"integer"}},"required":["host_port","container_port"],"type":"object"},"RegistryCredentials":{"properties":{"password":{"type":"string"},"username":{"type":"string"}},"required":["username","password"],"type":"object"},"VolumeMapping":{"properties":{"container_path":{"type":"string"},"host_path":{"type":"string"}},"required":["host_path","container_path"],"type":"object"}}}}
```

## The DownloadCheckpointFile object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"DownloadCheckpointFile":{"properties":{"entry":{"description":"Name of the file inside the checkpoint, as returned by the file listing","type":"string"}},"required":["entry"],"type":"object"}}}}
```

## The EffectivePolicy object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"EffectivePolicy":{"properties":{"idle_seconds":{"format":"int64","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"never_park":{"type":"boolean"},"priority":{"$ref":"#/components/schemas/Priority"},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":"array"},"sources":{"$ref":"#/components/schemas/Sources"},"team":{"type":["string","null"]}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules","sources"],"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"}}}}
```

## The EffectivePolicyView object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"EffectivePolicyView":{"allOf":[{"$ref":"#/components/schemas/EffectivePolicy"},{"properties":{"max_gpus":{"format":"int32","type":["integer","null"]},"max_resident_models":{"format":"int32","type":["integer","null"]},"schedule_floor":{"description":"What the active schedule windows keep warm now.","format":"int32","type":"integer"}},"required":["schedule_floor"],"type":"object"}]},"EffectivePolicy":{"properties":{"idle_seconds":{"format":"int64","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"never_park":{"type":"boolean"},"priority":{"$ref":"#/components/schemas/Priority"},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":"array"},"sources":{"$ref":"#/components/schemas/Sources"},"team":{"type":["string","null"]}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules","sources"],"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"}}}}
```

## The Engine object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Engine":{"enum":["sglang","vllm"],"type":"string"}}}}
```

## The EnvironmentVariable object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"EnvironmentVariable":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"type":"object"}}}}
```

## The EventsResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"EventsResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/NotificationEvent"},"type":"array"},"source_checkpoints":{"description":"Successful checkpoints that finished before the window but were restored inside it, so a restore can be\ncompared with its source pod's cold start. Checkpoints taken from a pod that was itself restored are left out.","items":{"$ref":"#/components/schemas/NotificationEvent"},"type":"array"}},"required":["events","source_checkpoints"],"type":"object"},"NotificationEvent":{"properties":{"action":{"description":"Storage rows: the CSX action (cached, evicted, persisted, read_closed, write_closed, ...); empty otherwise.","type":"string"},"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"cluster_id":{"type":"string"},"context":{"type":"string"},"description":{"type":"string"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"failure_reason":{"type":"string"},"failure_stage":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"node_name":{"type":"string"},"operation":{"type":"string"},"pause_ns":{"description":"Checkpoints: time the workload was held (see facts::checkpoint_pause_ns).","format":"int64","minimum":0,"type":"integer"},"physical_bytes":{"format":"int64","minimum":0,"type":"integer"},"pod_ready_at_ms":{"format":"int64","type":["integer","null"]},"pod_scheduled_at_ms":{"description":"Restores: PodScheduled / Ready transitions of the restored pod, once known.","format":"int64","type":["integer","null"]},"pod_uid":{"type":"string"},"read":{"type":"boolean"},"restore_uuid":{"type":"string"},"result":{"type":"string"},"storage_tier":{"type":"string"},"timestamp":{"type":"string"},"type":{"type":"string"},"workload_type":{"type":"string"},"write_target":{"description":"Write rows: where the write landed, tmpfs (the buffer) or nfs; empty otherwise.","type":"string"}},"required":["id","timestamp","type","operation","result","description","context","read","cluster_id","workload_type","node_name","pod_uid","name","namespace","action_id","checkpoint_id","restore_uuid","storage_tier","failure_stage","failure_reason","duration_ns","physical_bytes","pause_ns","action","write_target"],"type":"object"}}}}
```

## The FailureSummary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"FailureSummary":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"reason":{"type":"string"},"stage":{"type":"string"}},"required":["operation","stage","reason","count"],"type":"object"}}}}
```

## The FilteredJobResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"FilteredJobResponse":{"properties":{"available_priorities":{"items":{"format":"int32","type":"integer"},"type":"array"},"jobs":{"items":{"$ref":"#/components/schemas/JobFilterResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["jobs","total_count","available_priorities"],"type":"object"},"JobFilterResponse":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int64","type":"integer"},"priority":{"format":"int32","type":["integer","null"]},"start_time":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","pod_count"],"type":"object"}}}}
```

## The FleetPoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"FleetPoint":{"properties":{"gpus_in_use":{"format":"double","type":"number"},"gpus_total":{"format":"double","type":["number","null"]},"ready_replicas":{"format":"double","type":"number"},"serving_models":{"format":"int64","type":"integer"},"ts":{"format":"date-time","type":"string"}},"required":["ts","serving_models","ready_replicas","gpus_in_use"],"type":"object"}}}}
```

## The GpuInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"GpuInfo":{"description":"GPU inventory of one node.","properties":{"allocatable":{"description":"nvidia.com/gpu the scheduler can hand out (excludes MIG slices)","format":"int64","type":["integer","null"]},"compute_capability":{"description":"Compute capability, e.g. \"9.0\"","type":["string","null"]},"count":{"description":"Physical GPUs on the node","format":"int64","type":["integer","null"]},"cuda_version":{"description":"Highest CUDA version the driver supports, e.g. \"12.4\"","type":["string","null"]},"driver_version":{"description":"NVIDIA driver version, e.g. \"550.54.15\"","type":["string","null"]},"family":{"description":"Architecture family, e.g. \"hopper\"","type":["string","null"]},"memory_mib":{"description":"Memory per GPU in MiB","format":"int64","type":["integer","null"]},"mig_devices":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Allocatable MIG slices by profile, e.g. {\"1g.10gb\": 7}; empty when MIG is off","propertyNames":{"type":"string"},"type":"object"},"mig_strategy":{"description":"MIG strategy (\"none\", \"single\" or \"mixed\"), or \"disabled\" when mig-manager has MIG off","type":["string","null"]},"product":{"description":"GPU model, e.g. \"NVIDIA-H100-80GB-HBM3\"","type":["string","null"]}},"required":["mig_devices"],"type":"object"}}}}
```

## The GpuMetric object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"GpuMetric":{"description":"GPU metrics for a single GPU","properties":{"gpu_index":{"type":"string"},"gpu_utilization":{"description":"GPU utilization percentage (0-100)","format":"double","type":["number","null"]},"gpu_uuid":{"type":"string"},"memory_free_mib":{"description":"Framebuffer memory free in MiB","format":"double","type":["number","null"]},"memory_used_mib":{"description":"Framebuffer memory used in MiB","format":"double","type":["number","null"]},"memory_utilization":{"description":"Memory bandwidth utilization percentage (0-100)","format":"double","type":["number","null"]},"model_name":{"description":"GPU model name (e.g., \"NVIDIA H100 80GB HBM3\")","type":["string","null"]},"namespace":{"description":"Namespace of the pod (if any)","type":["string","null"]},"node_name":{"type":"string"},"pod_name":{"description":"Pod currently using this GPU (if any)","type":["string","null"]},"power_watts":{"description":"Power usage in Watts","format":"double","type":["number","null"]},"temperature_celsius":{"description":"GPU temperature in Celsius","format":"double","type":["number","null"]},"timestamp":{"type":"string"}},"required":["node_name","gpu_uuid","gpu_index","timestamp"],"type":"object"}}}}
```

## The GpuTimeSeries object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"GpuTimeSeries":{"description":"Time-series data for a single GPU","properties":{"data":{"items":{"$ref":"#/components/schemas/GpuTimeSeriesPoint"},"type":"array"},"gpu_index":{"type":"string"},"gpu_uuid":{"type":"string"},"model_name":{"type":["string","null"]},"node_name":{"type":"string"}},"required":["node_name","gpu_uuid","gpu_index","data"],"type":"object"},"GpuTimeSeriesPoint":{"description":"Time-series data point for GPU metrics","properties":{"gpu_utilization":{"format":"double","type":["number","null"]},"memory_free_mib":{"format":"double","type":["number","null"]},"memory_used_mib":{"format":"double","type":["number","null"]},"memory_utilization":{"format":"double","type":["number","null"]},"namespace":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"timestamp":{"type":"string"}},"required":["timestamp"],"type":"object"}}}}
```

## The GpuTimeSeriesPoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"GpuTimeSeriesPoint":{"description":"Time-series data point for GPU metrics","properties":{"gpu_utilization":{"format":"double","type":["number","null"]},"memory_free_mib":{"format":"double","type":["number","null"]},"memory_used_mib":{"format":"double","type":["number","null"]},"memory_utilization":{"format":"double","type":["number","null"]},"namespace":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"timestamp":{"type":"string"}},"required":["timestamp"],"type":"object"}}}}
```

## The HealthResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HealthResponse":{"properties":{"status":{"type":"string"},"version":{"type":"string"}},"required":["status","version"],"type":"object"}}}}
```

## The HeartbeatTriggerConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"}}}}
```

## The HistogramBucket object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HistogramBucket":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"le":{"description":"Upper bound of the bucket (seconds or bytes); `null` marks the overflow bucket above the last bound.","format":"double","type":["number","null"]}},"required":["count"],"type":"object"}}}}
```

## The Host object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Host":{"properties":{"CPU":{"$ref":"#/components/schemas/HostCpu"},"Hostname":{"type":"string"},"ID":{"type":"string"},"KernelArch":{"type":"string"},"KernelVersion":{"type":"string"},"MAC":{"type":"string"},"Memory":{"$ref":"#/components/schemas/HostMemory"},"OS":{"type":"string"},"Platform":{"type":"string"}},"type":"object"},"HostCpu":{"properties":{"Count":{"format":"int32","type":"integer"},"Family":{"type":"string"},"PhysicalID":{"type":"string"},"VendorID":{"type":"string"}},"type":"object"},"HostMemory":{"properties":{"Total":{"format":"int64","minimum":0,"type":"integer"}},"type":"object"}}}}
```

## The HostCpu object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HostCpu":{"properties":{"Count":{"format":"int32","type":"integer"},"Family":{"type":"string"},"PhysicalID":{"type":"string"},"VendorID":{"type":"string"}},"type":"object"}}}}
```

## The HostMemory object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HostMemory":{"properties":{"Total":{"format":"int64","minimum":0,"type":"integer"}},"type":"object"}}}}
```

## The HttpError object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}}}
```

## The InferenceEvent object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InferenceEvent":{"description":"One entry of a model's timeline, merged from the tables that record it.","properties":{"at":{"format":"date-time","type":"string"},"detail":{"type":["string","null"]},"duration_ms":{"format":"int64","type":["integer","null"]},"kind":{"description":"worker.restored, worker.cold_start, worker.terminated, restore.failed, restore.fallback,\ncheckpoint.first_ready, checkpoint.failed, model.parked, model.woken, model.scaled, or a\nlifecycle kind.","type":"string"},"logical_model":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"profile_id":{"type":["string","null"]},"severity":{"type":"string"},"source":{"description":"The table the event came from.","type":"string"}},"required":["at","kind","source","severity"],"type":"object"}}}}
```

## The InferenceKeyView object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InferenceKeyView":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"created_at":{"format":"date-time","type":"string"},"key_id":{"type":"string"},"models":{},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"revoked_at":{"format":"date-time","type":["string","null"]},"tenant_id":{"type":["string","null"]}},"required":["key_id","name","models","created_at"],"type":"object"}}}}
```

## The InstanceInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceInfo":{"properties":{"cloud_provider":{"type":"string"},"created_at":{"type":["string","null"]},"id":{"type":"string"},"instance_type":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status","cloud_provider","region","instance_type"],"type":"object"}}}}
```

## The InstanceStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceStatus":{"properties":{"created_at":{"type":["string","null"]},"instance_id":{"type":"string"},"ip_address":{"type":["string","null"]},"metadata":{},"ssh_port":{"format":"int32","type":["integer","null"]},"ssh_user":{"type":["string","null"]},"status":{"type":"string"}},"required":["instance_id","status","metadata"],"type":"object"}}}}
```

## The InstanceType object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceType":{"properties":{"availability":{"items":{"$ref":"#/components/schemas/InstanceTypeAvailability"},"type":"array"},"boot_time":{"$ref":"#/components/schemas/InstanceTypeBootTime"},"cloud":{"type":"string"},"cloud_instance_type":{"type":"string"},"configuration":{"$ref":"#/components/schemas/InstanceTypeConfiguration"},"deployment_type":{"type":"string"},"hourly_price":{"format":"int32","type":"integer"},"shade_instance_type":{"type":"string"}},"required":["cloud","shade_instance_type","cloud_instance_type","configuration","hourly_price","deployment_type","availability","boot_time"],"type":"object"},"InstanceTypeAvailability":{"properties":{"available":{"type":"boolean"},"display_name":{"type":"string"},"region":{"type":"string"}},"required":["region","available","display_name"],"type":"object"},"InstanceTypeBootTime":{"properties":{"max_boot_in_sec":{"format":"int32","type":"integer"},"min_boot_in_sec":{"format":"int32","type":"integer"}},"required":["min_boot_in_sec","max_boot_in_sec"],"type":"object"},"InstanceTypeConfiguration":{"properties":{"gpu_type":{"type":"string"},"interconnect":{"type":"string"},"memory_in_gb":{"format":"int32","type":"integer"},"num_gpus":{"format":"int32","type":"integer"},"nvlink":{"type":"boolean"},"os_options":{"items":{"type":"string"},"type":"array"},"storage_in_gb":{"format":"int32","type":"integer"},"vcpus":{"format":"int32","type":"integer"},"vram_per_gpu_in_gb":{"format":"int32","type":"integer"}},"required":["memory_in_gb","storage_in_gb","vcpus","num_gpus","gpu_type","interconnect","nvlink","vram_per_gpu_in_gb","os_options"],"type":"object"}}}}
```

## The InstanceTypeAvailability object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceTypeAvailability":{"properties":{"available":{"type":"boolean"},"display_name":{"type":"string"},"region":{"type":"string"}},"required":["region","available","display_name"],"type":"object"}}}}
```

## The InstanceTypeBootTime object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceTypeBootTime":{"properties":{"max_boot_in_sec":{"format":"int32","type":"integer"},"min_boot_in_sec":{"format":"int32","type":"integer"}},"required":["min_boot_in_sec","max_boot_in_sec"],"type":"object"}}}}
```

## The InstanceTypeConfiguration object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceTypeConfiguration":{"properties":{"gpu_type":{"type":"string"},"interconnect":{"type":"string"},"memory_in_gb":{"format":"int32","type":"integer"},"num_gpus":{"format":"int32","type":"integer"},"nvlink":{"type":"boolean"},"os_options":{"items":{"type":"string"},"type":"array"},"storage_in_gb":{"format":"int32","type":"integer"},"vcpus":{"format":"int32","type":"integer"},"vram_per_gpu_in_gb":{"format":"int32","type":"integer"}},"required":["memory_in_gb","storage_in_gb","vcpus","num_gpus","gpu_type","interconnect","nvlink","vram_per_gpu_in_gb","os_options"],"type":"object"}}}}
```

## The InstanceTypePricing object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"InstanceTypePricing":{"description":"Instance type pricing configuration","properties":{"capacity_type":{"description":"\"spot\" or \"on-demand\"","type":"string"},"created_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"instance_type":{"type":"string"},"ondemand_price_per_hour":{"description":"Hourly cost when running as on-demand","format":"double","type":["number","null"]},"spot_price_per_hour":{"description":"Hourly cost when running as spot","format":"double","type":["number","null"]},"updated_at":{"format":"date-time","type":"string"}},"required":["id","instance_type","capacity_type","created_at","updated_at"],"type":"object"}}}}
```

## The Job object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Job":{"properties":{"Details":{},"JID":{"type":"string"},"Log":{"type":"string"},"State":{"$ref":"#/components/schemas/ProcessState"},"Type":{"type":"string"}},"required":["Type","State"],"type":"object"},"ProcessState":{"properties":{"Cmdline":{"type":"string"},"GIDs":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"GPUEnabled":{"type":"boolean"},"Groups":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"Host":{"$ref":"#/components/schemas/Host"},"IsRunning":{"type":"boolean"},"PID":{"format":"int32","minimum":0,"type":"integer"},"StartTime":{"format":"int64","minimum":0,"type":"integer"},"Status":{"type":"string"},"UIDs":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"WorkingDir":{"type":"string"}},"required":["PID","Cmdline","StartTime","WorkingDir","Status","IsRunning","Host"],"type":"object"},"Host":{"properties":{"CPU":{"$ref":"#/components/schemas/HostCpu"},"Hostname":{"type":"string"},"ID":{"type":"string"},"KernelArch":{"type":"string"},"KernelVersion":{"type":"string"},"MAC":{"type":"string"},"Memory":{"$ref":"#/components/schemas/HostMemory"},"OS":{"type":"string"},"Platform":{"type":"string"}},"type":"object"},"HostCpu":{"properties":{"Count":{"format":"int32","type":"integer"},"Family":{"type":"string"},"PhysicalID":{"type":"string"},"VendorID":{"type":"string"}},"type":"object"},"HostMemory":{"properties":{"Total":{"format":"int64","minimum":0,"type":"integer"}},"type":"object"}}}}
```

## The JobFilterResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobFilterResponse":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int64","type":"integer"},"priority":{"format":"int32","type":["integer","null"]},"start_time":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","pod_count"],"type":"object"}}}}
```

## The JobPodResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobPodResponse":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"owner_reference":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status"],"type":"object"}}}}
```

## The JobPodsResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobPodsResponse":{"properties":{"job_id":{"format":"uuid","type":"string"},"job_name":{"type":"string"},"pods":{"items":{"$ref":"#/components/schemas/JobPodResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["job_id","job_name","pods","total_count"],"type":"object"},"JobPodResponse":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"owner_reference":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status"],"type":"object"}}}}
```

## The JobPolicyStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobPolicyStatus":{"properties":{"job_ids":{"items":{"type":"string"},"type":"array"},"job_status":{"type":["string","null"]},"last_updated":{"type":["string","null"]},"pod_count":{"format":"int64","type":"integer"},"policy_id":{"type":"string"},"tracked_pods":{"items":{"type":"string"},"type":"array"}},"required":["policy_id","job_ids","tracked_pods","pod_count"],"type":"object"}}}}
```

## The JobPrioritiesResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobPrioritiesResponse":{"properties":{"priorities":{"items":{"format":"int32","type":"integer"},"type":"array"},"priority_counts":{"additionalProperties":{"format":"int64","type":"integer"},"propertyNames":{"type":"string"},"type":"object"}},"required":["priorities","priority_counts"],"type":"object"}}}}
```

## The JobResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobResponse":{"properties":{"age":{"type":"string"},"completions":{"type":["string","null"]},"duration":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"monitored_by_policies":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int32","type":["integer","null"]},"pod_ids":{"items":{"type":"string"},"type":"array"},"policy_count":{"format":"int32","type":["integer","null"]},"priority":{"format":"int32","type":["integer","null"]},"startTime":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","age","monitored_by_policies","pod_ids"],"type":"object"}}}}
```

## The JobsFilterConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"}}}}
```

## The K8sResource object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"K8sResource":{"description":"A Kubernetes resource tagged by \"type\", with the resource's raw JSON fields alongside the tag","properties":{"type":{"enum":["None","Pod","Node","Job","DynamoGraphDeployment","DynamoService"],"type":"string"}},"required":["type"],"title":"K8sResource","type":"object"}}}}
```

## The LaunchConfiguration object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"LaunchConfiguration":{"properties":{"docker_configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DockerConfiguration"}]},"script_configuration":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ScriptConfiguration"}]},"type":{"type":"string"}},"required":["type"],"type":"object"},"DockerConfiguration":{"properties":{"args":{"type":["string","null"]},"envs":{"items":{"$ref":"#/components/schemas/EnvironmentVariable"},"type":["array","null"]},"image":{"type":"string"},"port_mappings":{"items":{"$ref":"#/components/schemas/PortMapping"},"type":["array","null"]},"registry_credentials":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RegistryCredentials"}]},"shared_memory_in_gb":{"format":"int32","type":["integer","null"]},"volume_mounts":{"items":{"$ref":"#/components/schemas/VolumeMapping"},"type":["array","null"]}},"required":["image"],"type":"object"},"EnvironmentVariable":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"type":"object"},"PortMapping":{"properties":{"container_port":{"format":"int32","type":"integer"},"host_port":{"format":"int32","type":"integer"}},"required":["host_port","container_port"],"type":"object"},"RegistryCredentials":{"properties":{"password":{"type":"string"},"username":{"type":"string"}},"required":["username","password"],"type":"object"},"VolumeMapping":{"properties":{"container_path":{"type":"string"},"host_path":{"type":"string"}},"required":["host_path","container_path"],"type":"object"},"ScriptConfiguration":{"properties":{"base64_script":{"type":"string"}},"required":["base64_script"],"type":"object"}}}}
```

## The LifecycleEnvelope object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"LifecycleEnvelope":{"description":"Shared envelope for trusted lifecycle events.","properties":{"action_id":{"description":"Checkpoint/restore action UUID when the event belongs to one.","format":"uuid","type":["string","null"]},"activation_id":{"description":"Model activation row UUID when applicable.","format":"uuid","type":["string","null"]},"artifact_id":{"description":"Checkpoint artifact UUID for checkpoint events.","format":"uuid","type":["string","null"]},"boot_id":{"type":["string","null"]},"cluster_id":{"description":"Nebius cluster (`clusters.id` UUID).","format":"uuid","type":"string"},"event_id":{"description":"Idempotency key: generated once per logical event and reused across\ntransport retries (RabbitMQ redelivery, HTTP retry).","format":"uuid","type":"string"},"generation":{"description":"Activation observed generation.","format":"int64","type":"integer"},"kind":{"description":"One of SUPPORTED_LIFECYCLE_KINDS.","type":"string"},"node_uid":{"description":"Node the event came from (checkpoint tmpfs artifacts are boot-tied).","format":"uuid","type":["string","null"]},"occurred_at":{"description":"When the event happened at the source (RFC3339 UTC).","format":"date-time","type":"string"},"payload":{"description":"Free-form JSON; required fields vary per kind."},"profile_id":{"description":"Deployment profile id (e.g. `qwen3-30b-a3b-l40s-fp8`).","type":"string"},"schema_version":{"description":"MUST be 1; anything else is dead-lettered on ingestion.","format":"int32","type":"integer"},"sequence":{"description":"Per-(cluster_id, activation_id) monotonic counter; 0 when not applicable.","format":"int64","type":"integer"},"workload_uid":{"description":"k8s pod/DGD UID when relevant.","type":["string","null"]}},"required":["schema_version","event_id","occurred_at","cluster_id","profile_id","kind"],"type":"object"}}}}
```

## The LifecycleEventView object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"LifecycleEventView":{"description":"One durably-persisted lifecycle event, across every profile in the cluster.","properties":{"event_id":{"format":"uuid","type":"string"},"generation":{"format":"int64","type":["integer","null"]},"kind":{"description":"Lifecycle kind, e.g. model.ready, route.published, route.withdrawn.","type":"string"},"occurred_at":{"format":"date-time","type":"string"},"payload":{},"profile_id":{"description":"The profile the event belongs to, when known. Null for cluster-wide events\nand for rows written before the column existed.","type":["string","null"]},"sequence":{"format":"int64","type":["integer","null"]}},"required":["event_id","kind","occurred_at"],"type":"object"}}}}
```

## The MaintenanceTriggerConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The MemoryTimeSeries object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"MemoryTimeSeries":{"properties":{"allocated_memory":{"items":{"$ref":"#/components/schemas/TimeSeriesDataPoint"},"type":"array"},"free_memory":{"items":{"$ref":"#/components/schemas/TimeSeriesDataPoint"},"type":"array"}},"required":["free_memory","allocated_memory"],"type":"object"},"TimeSeriesDataPoint":{"properties":{"timestamp":{"format":"int64","type":"integer"},"value":{"format":"double","type":"number"}},"required":["timestamp","value"],"type":"object"}}}}
```

## The MetricsSeries object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"MetricsSeries":{"properties":{"bucket_minutes":{"format":"int32","type":"integer"},"fleet":{"items":{"$ref":"#/components/schemas/FleetPoint"},"type":"array"},"series":{"items":{"$ref":"#/components/schemas/ModelMetricsSeries"},"type":"array"}},"required":["bucket_minutes","series","fleet"],"type":"object"},"FleetPoint":{"properties":{"gpus_in_use":{"format":"double","type":"number"},"gpus_total":{"format":"double","type":["number","null"]},"ready_replicas":{"format":"double","type":"number"},"serving_models":{"format":"int64","type":"integer"},"ts":{"format":"date-time","type":"string"}},"required":["ts","serving_models","ready_replicas","gpus_in_use"],"type":"object"},"ModelMetricsSeries":{"description":"A model's engine and GPU metrics in one bucket: `ts` plus one field per recorded series\n(generation_tokens_per_second, kv_usage, gpu_utilization, ...); a series with no samples is absent.","properties":{"points":{"items":{"type":"object"},"type":"array"},"profile_id":{"type":"string"}},"required":["profile_id","points"],"type":"object"}}}}
```

## The ModelMetricsSeries object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ModelMetricsSeries":{"description":"A model's engine and GPU metrics in one bucket: `ts` plus one field per recorded series\n(generation_tokens_per_second, kv_usage, gpu_utilization, ...); a series with no samples is absent.","properties":{"points":{"items":{"type":"object"},"type":"array"},"profile_id":{"type":"string"}},"required":["profile_id","points"],"type":"object"}}}}
```

## The ModelSlo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ModelSlo":{"description":"One model's service levels over the window, per serving profile.","properties":{"breaches":{"description":"Breached metrics: ttft_p95, error_rate, inter_token_p95. Empty below the minimum requests.","items":{"type":"string"},"type":"array"},"e2e_p95_ms":{"format":"double","type":["number","null"]},"error_rate":{"format":"double","type":"number"},"errors":{"description":"5xx and 429 responses; other 4xx are caller errors.","format":"int64","type":"integer"},"inter_token_p95_ms":{"description":"p95 over requests of each request's p95 inter-token gap.","format":"double","type":["number","null"]},"logical_model":{"type":"string"},"profile_id":{"description":"The profile that served; null for requests refused before one was chosen.","type":["string","null"]},"queue_p95_ms":{"description":"Time the gateway held the request before routing it.","format":"double","type":["number","null"]},"requests":{"format":"int64","type":"integer"},"thresholds":{"$ref":"#/components/schemas/SloThresholds"},"ttft_p50_ms":{"format":"double","type":["number","null"]},"ttft_p95_ms":{"description":"Over every request, wakes included.","format":"double","type":["number","null"]},"wake_requests":{"description":"Requests that waited for the model to wake.","format":"int64","type":"integer"},"wake_ttft_p95_ms":{"format":"double","type":["number","null"]},"warm_requests":{"description":"Requests routed within WAKE_QUEUE_MS; the TTFT breach is judged on these.","format":"int64","type":"integer"},"warm_ttft_p95_ms":{"format":"double","type":["number","null"]}},"required":["logical_model","requests","errors","error_rate","warm_requests","wake_requests","thresholds","breaches"],"type":"object"},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"}}}}
```

## The ModelSpec object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"}}}}
```

## The ModelUsage object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ModelUsage":{"description":"Served traffic for one model over the window, from the gateway's per-request records.","properties":{"completion_tokens":{"format":"int64","type":"integer"},"errors":{"format":"int64","type":"integer"},"key_id":{"description":"The API key the requests used; set only with `by=key`, null for unkeyed requests.","type":["string","null"]},"logical_model":{"type":"string"},"output_tokens_per_second":{"description":"Completion tokens over streaming time, per request stream.","format":"double","type":["number","null"]},"prompt_tokens":{"format":"int64","type":"integer"},"requests":{"format":"int64","type":"integer"},"ttft_p50_ms":{"format":"double","type":["number","null"]},"ttft_p95_ms":{"format":"double","type":["number","null"]}},"required":["logical_model","requests","errors","prompt_tokens","completion_tokens"],"type":"object"}}}}
```

## The NamespaceFilterConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"}}}}
```

## The NamespacesResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NamespacesResponse":{"properties":{"namespaces":{"items":{"type":"string"},"type":"array"}},"required":["namespaces"],"type":"object"}}}}
```

## The NetworkInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NetworkInfo":{"description":"Networking of one node: NICs, RDMA and the devices plugins expose for them.","properties":{"network_operator":{"description":"Whether the NVIDIA Network Operator manages this node's NIC drivers","type":"boolean"},"nic_vendors":{"description":"High-performance NIC vendors seen on the PCI bus, e.g. [\"NVIDIA Mellanox\"] (Node Feature Discovery)","items":{"type":"string"},"type":"array"},"rdma_available":{"description":"Whether the RDMA kernel modules are loaded (Node Feature Discovery)","type":["boolean","null"]},"rdma_capable":{"description":"Whether an RDMA-capable NIC is present (Node Feature Discovery)","type":["boolean","null"]},"rdma_resources":{"additionalProperties":{"format":"int64","type":"integer"},"description":"RDMA, InfiniBand, SR-IOV and EFA devices the node advertises, by resource name, e.g. {\"rdma/ib\": 8}","propertyNames":{"type":"string"},"type":"object"},"sriov_capable":{"description":"Whether a NIC supports SR-IOV (Node Feature Discovery)","type":["boolean","null"]},"sriov_configured":{"description":"Whether SR-IOV virtual functions are configured (Node Feature Discovery)","type":["boolean","null"]}},"required":["nic_vendors","network_operator","rdma_resources"],"type":"object"}}}}
```

## The NodeGpuMetrics object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeGpuMetrics":{"description":"GPU metrics grouped by node","properties":{"gpus":{"items":{"$ref":"#/components/schemas/GpuMetric"},"type":"array"},"node_name":{"type":"string"}},"required":["node_name","gpus"],"type":"object"},"GpuMetric":{"description":"GPU metrics for a single GPU","properties":{"gpu_index":{"type":"string"},"gpu_utilization":{"description":"GPU utilization percentage (0-100)","format":"double","type":["number","null"]},"gpu_uuid":{"type":"string"},"memory_free_mib":{"description":"Framebuffer memory free in MiB","format":"double","type":["number","null"]},"memory_used_mib":{"description":"Framebuffer memory used in MiB","format":"double","type":["number","null"]},"memory_utilization":{"description":"Memory bandwidth utilization percentage (0-100)","format":"double","type":["number","null"]},"model_name":{"description":"GPU model name (e.g., \"NVIDIA H100 80GB HBM3\")","type":["string","null"]},"namespace":{"description":"Namespace of the pod (if any)","type":["string","null"]},"node_name":{"type":"string"},"pod_name":{"description":"Pod currently using this GPU (if any)","type":["string","null"]},"power_watts":{"description":"Power usage in Watts","format":"double","type":["number","null"]},"temperature_celsius":{"description":"GPU temperature in Celsius","format":"double","type":["number","null"]},"timestamp":{"type":"string"}},"required":["node_name","gpu_uuid","gpu_index","timestamp"],"type":"object"}}}}
```

## The NodeMetricItem object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeMetricItem":{"properties":{"collector":{"type":"string"},"cpu_core":{"type":"string"},"cpu_mode":{"type":"string"},"filesystem":{"type":"string"},"metric_name":{"type":"string"},"mountpoint":{"type":"string"},"resource":{"type":["string","null"]},"timestamp":{"type":"string"},"value":{"type":"string"}},"required":["metric_name","collector","value","timestamp"],"type":"object"}}}}
```

## The NodeResourceMetricList object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeResourceMetricList":{"description":"New structured event state","properties":{"details":{"items":{"$ref":"#/components/schemas/NodeMetricItem"},"type":"array"},"name":{"type":"string"}},"required":["name"],"type":"object"},"NodeMetricItem":{"properties":{"collector":{"type":"string"},"cpu_core":{"type":"string"},"cpu_mode":{"type":"string"},"filesystem":{"type":"string"},"metric_name":{"type":"string"},"mountpoint":{"type":"string"},"resource":{"type":["string","null"]},"timestamp":{"type":"string"},"value":{"type":"string"}},"required":["metric_name","collector","value","timestamp"],"type":"object"}}}}
```

## The NodeResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeResponse":{"properties":{"capacity_type":{"description":"\"spot\" or \"on-demand\" - detected from node labels","type":"string"},"cluster_name":{"type":"string"},"compute_type":{"type":"string"},"cpu":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CpuInfo","description":"CPU of the node"}]},"gpu":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/GpuInfo","description":"GPU inventory; absent for nodes without NVIDIA GPUs"}]},"id":{"format":"uuid","type":"string"},"instance_type":{"type":"string"},"labels":{"additionalProperties":{"type":"string"},"description":"Node labels, without NFD's per-flag CPUID labels","propertyNames":{"type":"string"},"type":"object"},"name":{"type":"string"},"network":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/NetworkInfo","description":"NICs, RDMA and SR-IOV of the node"}]},"pressure":{"description":"Pressure conditions currently True, e.g. [\"DiskPressure\"]","items":{"type":"string"},"type":"array"},"region":{"type":"string"},"status":{"type":"string"},"storage":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/StorageInfo","description":"Local storage and CSI drivers of the node"}]},"system":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SystemInfo","description":"Memory and software of the node"}]}},"required":["id","name","status","cluster_name","compute_type","instance_type","region","capacity_type","labels","pressure"],"type":"object"},"CpuInfo":{"description":"CPU of one node.","properties":{"allocatable_cores":{"description":"CPUs the scheduler can hand out, after system reservations","format":"double","type":["number","null"]},"architecture":{"description":"\"amd64\" or \"arm64\"","type":["string","null"]},"cores":{"description":"Logical CPUs on the node","format":"double","type":["number","null"]},"hyperthreading":{"description":"Whether SMT/hyper-threading is on (Node Feature Discovery)","type":["boolean","null"]},"hypervisor":{"description":"Hypervisor the node runs under, e.g. \"kvm\"; newer NFD versions only","type":["string","null"]},"isa_level":{"description":"Highest x86-64 microarchitecture level, e.g. \"x86-64-v4\" (Node Feature Discovery)","type":["string","null"]},"vendor":{"description":"\"Intel\" or \"AMD\" (Node Feature Discovery)","type":["string","null"]},"virtualized":{"description":"Whether the node is a VM, from the CPUID hypervisor flag (Node Feature Discovery)","type":["boolean","null"]}},"type":"object"},"GpuInfo":{"description":"GPU inventory of one node.","properties":{"allocatable":{"description":"nvidia.com/gpu the scheduler can hand out (excludes MIG slices)","format":"int64","type":["integer","null"]},"compute_capability":{"description":"Compute capability, e.g. \"9.0\"","type":["string","null"]},"count":{"description":"Physical GPUs on the node","format":"int64","type":["integer","null"]},"cuda_version":{"description":"Highest CUDA version the driver supports, e.g. \"12.4\"","type":["string","null"]},"driver_version":{"description":"NVIDIA driver version, e.g. \"550.54.15\"","type":["string","null"]},"family":{"description":"Architecture family, e.g. \"hopper\"","type":["string","null"]},"memory_mib":{"description":"Memory per GPU in MiB","format":"int64","type":["integer","null"]},"mig_devices":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Allocatable MIG slices by profile, e.g. {\"1g.10gb\": 7}; empty when MIG is off","propertyNames":{"type":"string"},"type":"object"},"mig_strategy":{"description":"MIG strategy (\"none\", \"single\" or \"mixed\"), or \"disabled\" when mig-manager has MIG off","type":["string","null"]},"product":{"description":"GPU model, e.g. \"NVIDIA-H100-80GB-HBM3\"","type":["string","null"]}},"required":["mig_devices"],"type":"object"},"NetworkInfo":{"description":"Networking of one node: NICs, RDMA and the devices plugins expose for them.","properties":{"network_operator":{"description":"Whether the NVIDIA Network Operator manages this node's NIC drivers","type":"boolean"},"nic_vendors":{"description":"High-performance NIC vendors seen on the PCI bus, e.g. [\"NVIDIA Mellanox\"] (Node Feature Discovery)","items":{"type":"string"},"type":"array"},"rdma_available":{"description":"Whether the RDMA kernel modules are loaded (Node Feature Discovery)","type":["boolean","null"]},"rdma_capable":{"description":"Whether an RDMA-capable NIC is present (Node Feature Discovery)","type":["boolean","null"]},"rdma_resources":{"additionalProperties":{"format":"int64","type":"integer"},"description":"RDMA, InfiniBand, SR-IOV and EFA devices the node advertises, by resource name, e.g. {\"rdma/ib\": 8}","propertyNames":{"type":"string"},"type":"object"},"sriov_capable":{"description":"Whether a NIC supports SR-IOV (Node Feature Discovery)","type":["boolean","null"]},"sriov_configured":{"description":"Whether SR-IOV virtual functions are configured (Node Feature Discovery)","type":["boolean","null"]}},"required":["nic_vendors","network_operator","rdma_resources"],"type":"object"},"StorageInfo":{"description":"Local storage of one node.","properties":{"allocatable_ephemeral_storage_bytes":{"description":"Ephemeral storage the scheduler can hand out, after system reservations","format":"int64","type":["integer","null"]},"csi_drivers":{"description":"CSI drivers serving the node, from their topology labels, e.g. [\"csi.weka.io\"]","items":{"type":"string"},"type":"array"},"ephemeral_storage_bytes":{"format":"int64","type":["integer","null"]},"local_ssd":{"description":"Whether the node has a non-rotational (SSD/NVMe) disk (Node Feature Discovery)","type":["boolean","null"]}},"required":["csi_drivers"],"type":"object"},"SystemInfo":{"description":"Memory and software of one node.","properties":{"allocatable_memory_bytes":{"description":"Memory the scheduler can hand out, after system reservations","format":"int64","type":["integer","null"]},"container_runtime":{"description":"e.g. \"containerd://2.3.3\"","type":["string","null"]},"hugepages_bytes":{"description":"Huge pages reserved on the node, all page sizes together; absent when none are","format":"int64","type":["integer","null"]},"kernel_version":{"type":["string","null"]},"kubelet_version":{"type":["string","null"]},"max_pods":{"format":"int64","type":["integer","null"]},"memory_bytes":{"format":"int64","type":["integer","null"]},"numa":{"description":"Whether memory spans several NUMA nodes (Node Feature Discovery)","type":["boolean","null"]},"os_image":{"description":"e.g. \"Ubuntu 24.04.4 LTS\"","type":["string","null"]},"zone":{"type":["string","null"]}},"type":"object"}}}}
```

## The NodeSavings object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeSavings":{"properties":{"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"cluster_id":{"type":"string"},"elapsed_ns":{"description":"Time Cedana spent checkpointing and restoring on this node, all attempts.","format":"int64","minimum":0,"type":"integer"},"first_ms":{"description":"First checkpoint or restore started on this node.","format":"int64","type":"integer"},"last_ms":{"format":"int64","type":"integer"},"measured_since_ms":{"description":"First operation here with pod start times recorded; the averages run from here to now, and are 0 without one.","format":"int64","type":["integer","null"]},"node_name":{"type":"string"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"description":"Sum over those pairs of source cold start minus restore, floored at 0 per pair.","format":"int64","minimum":0,"type":"integer"},"saved_per_day_ns":{"description":"`saved_ns` per 24h since `measured_since_ms` (at least one day).","format":"double","type":"number"},"saved_per_month_ns":{"description":"`saved_ns` per calendar month since `measured_since_ms`, counting the first and current months.","format":"double","type":"number"},"savings_pairs":{"description":"Restores here with PodScheduled→Ready for both the restored pod and its checkpoint's source pod.","format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","node_name","first_ms","last_ms","checkpoints","restores","elapsed_ns","savings_pairs","saved_ns","saved_per_day_ns","saved_per_month_ns"],"type":"object"}}}}
```

## The NodeSummary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NodeSummary":{"properties":{"bytes_total":{"description":"Bytes written by successful checkpoints on this node.","format":"int64","minimum":0,"type":"integer"},"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"cluster_id":{"type":"string"},"cold_start_p50_ns":{"description":"Source pod's PodScheduled→Ready, i.e. what the workload took to start without a checkpoint.","format":"double","type":"number"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"last_ms":{"format":"int64","type":"integer"},"node_name":{"type":"string"},"restore_p50_ns":{"format":"double","type":"number"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"savings_pairs":{"description":"Successful restores on this node with PodScheduled→Ready for both the restored pod and its\ncheckpoint's source pod; the three fields below are over these pairs (0 when there are none).","format":"int64","minimum":0,"type":"integer"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","node_name","checkpoints","restores","succeeded","failed","fallbacks","bytes_total","last_ms","savings_pairs","restore_p50_ns","cold_start_p50_ns","saved_ns"],"type":"object"}}}}
```

## The NotificationEvent object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"NotificationEvent":{"properties":{"action":{"description":"Storage rows: the CSX action (cached, evicted, persisted, read_closed, write_closed, ...); empty otherwise.","type":"string"},"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"cluster_id":{"type":"string"},"context":{"type":"string"},"description":{"type":"string"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"failure_reason":{"type":"string"},"failure_stage":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"node_name":{"type":"string"},"operation":{"type":"string"},"pause_ns":{"description":"Checkpoints: time the workload was held (see facts::checkpoint_pause_ns).","format":"int64","minimum":0,"type":"integer"},"physical_bytes":{"format":"int64","minimum":0,"type":"integer"},"pod_ready_at_ms":{"format":"int64","type":["integer","null"]},"pod_scheduled_at_ms":{"description":"Restores: PodScheduled / Ready transitions of the restored pod, once known.","format":"int64","type":["integer","null"]},"pod_uid":{"type":"string"},"read":{"type":"boolean"},"restore_uuid":{"type":"string"},"result":{"type":"string"},"storage_tier":{"type":"string"},"timestamp":{"type":"string"},"type":{"type":"string"},"workload_type":{"type":"string"},"write_target":{"description":"Write rows: where the write landed, tmpfs (the buffer) or nfs; empty otherwise.","type":"string"}},"required":["id","timestamp","type","operation","result","description","context","read","cluster_id","workload_type","node_name","pod_uid","name","namespace","action_id","checkpoint_id","restore_uuid","storage_tier","failure_stage","failure_reason","duration_ns","physical_bytes","pause_ns","action","write_target"],"type":"object"}}}}
```

## The OperationDetail object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationDetail":{"allOf":[{"$ref":"#/components/schemas/OperationRow"},{"properties":{"restores":{"description":"For a checkpoint, every restore made from it; empty for a restore.","items":{"$ref":"#/components/schemas/OperationRow"},"type":"array"},"stages":{"items":{"$ref":"#/components/schemas/OperationStage"},"type":"array"}},"required":["stages","restores"],"type":"object"}]},"OperationRow":{"properties":{"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"cluster_id":{"type":"string"},"completed_at_ms":{"format":"int64","type":["integer","null"]},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"failure_reason":{"type":"string"},"failure_stage":{"type":"string"},"gpu_model":{"type":"string"},"kind":{"type":"string"},"logical_bytes":{"format":"int64","minimum":0,"type":"integer"},"name":{"type":"string"},"namespace":{"type":"string"},"node_name":{"type":"string"},"op_type":{"type":"string"},"operation_id":{"type":"string"},"pause_ns":{"format":"int64","minimum":0,"type":"integer"},"physical_bytes":{"format":"int64","minimum":0,"type":"integer"},"platform":{"type":"string"},"pod_ready_at_ms":{"format":"int64","type":["integer","null"]},"pod_scheduled_at_ms":{"description":"Restores only: PodScheduled / Ready transitions of the restored pod, once known.","format":"int64","type":["integer","null"]},"pod_uid":{"type":"string"},"reason":{"type":"string"},"restore_uuid":{"type":"string"},"result":{"type":"string"},"source":{"type":"string"},"started_at_ms":{"description":"Milliseconds since the Unix epoch.","format":"int64","type":"integer"},"storage_tier":{"type":"string"},"workload_type":{"type":"string"}},"required":["operation_id","op_type","workload_type","cluster_id","node_name","pod_uid","name","namespace","action_id","checkpoint_id","restore_uuid","reason","kind","result","failure_stage","failure_reason","storage_tier","gpu_model","platform","started_at_ms","duration_ns","pause_ns","logical_bytes","physical_bytes","source"],"type":"object"},"OperationStage":{"properties":{"bytes_in":{"format":"int64","minimum":0,"type":"integer"},"bytes_out":{"format":"int64","minimum":0,"type":"integer"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"reason":{"type":"string"},"result":{"type":"string"},"seq":{"format":"int32","minimum":0,"type":"integer"},"stage":{"type":"string"}},"required":["stage","seq","duration_ns","bytes_in","bytes_out","result","reason"],"type":"object"}}}}
```

## The OperationRow object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationRow":{"properties":{"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"cluster_id":{"type":"string"},"completed_at_ms":{"format":"int64","type":["integer","null"]},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"failure_reason":{"type":"string"},"failure_stage":{"type":"string"},"gpu_model":{"type":"string"},"kind":{"type":"string"},"logical_bytes":{"format":"int64","minimum":0,"type":"integer"},"name":{"type":"string"},"namespace":{"type":"string"},"node_name":{"type":"string"},"op_type":{"type":"string"},"operation_id":{"type":"string"},"pause_ns":{"format":"int64","minimum":0,"type":"integer"},"physical_bytes":{"format":"int64","minimum":0,"type":"integer"},"platform":{"type":"string"},"pod_ready_at_ms":{"format":"int64","type":["integer","null"]},"pod_scheduled_at_ms":{"description":"Restores only: PodScheduled / Ready transitions of the restored pod, once known.","format":"int64","type":["integer","null"]},"pod_uid":{"type":"string"},"reason":{"type":"string"},"restore_uuid":{"type":"string"},"result":{"type":"string"},"source":{"type":"string"},"started_at_ms":{"description":"Milliseconds since the Unix epoch.","format":"int64","type":"integer"},"storage_tier":{"type":"string"},"workload_type":{"type":"string"}},"required":["operation_id","op_type","workload_type","cluster_id","node_name","pod_uid","name","namespace","action_id","checkpoint_id","restore_uuid","reason","kind","result","failure_stage","failure_reason","storage_tier","gpu_model","platform","started_at_ms","duration_ns","pause_ns","logical_bytes","physical_bytes","source"],"type":"object"}}}}
```

## The OperationStage object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationStage":{"properties":{"bytes_in":{"format":"int64","minimum":0,"type":"integer"},"bytes_out":{"format":"int64","minimum":0,"type":"integer"},"duration_ns":{"format":"int64","minimum":0,"type":"integer"},"reason":{"type":"string"},"result":{"type":"string"},"seq":{"format":"int32","minimum":0,"type":"integer"},"stage":{"type":"string"}},"required":["stage","seq","duration_ns","bytes_in","bytes_out","result","reason"],"type":"object"}}}}
```

## The OperationTotals object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationTotals":{"properties":{"attempts":{"format":"int64","minimum":0,"type":"integer"},"bytes_total":{"format":"int64","minimum":0,"type":"integer"},"duration_buckets":{"items":{"$ref":"#/components/schemas/HistogramBucket"},"type":"array"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"p95_ns":{"format":"double","type":"number"},"pause_p50_ns":{"description":"Checkpoints: pause percentiles over attempts with a pause recorded (0 otherwise).","format":"double","type":"number"},"pause_p95_ns":{"format":"double","type":"number"},"succeeded":{"format":"int64","minimum":0,"type":"integer"},"to_ready_count":{"format":"int64","minimum":0,"type":"integer"},"to_ready_p50_ns":{"description":"Restores: PodScheduled→Ready percentiles over attempts whose pod reached Ready (0 otherwise).","format":"double","type":"number"},"to_ready_p95_ns":{"format":"double","type":"number"}},"required":["operation","attempts","succeeded","failed","fallbacks","p50_ns","p95_ns","bytes_total","duration_buckets","pause_p50_ns","pause_p95_ns","to_ready_p50_ns","to_ready_p95_ns","to_ready_count"],"type":"object"},"HistogramBucket":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"le":{"description":"Upper bound of the bucket (seconds or bytes); `null` marks the overflow bucket above the last bound.","format":"double","type":["number","null"]}},"required":["count"],"type":"object"}}}}
```

## The OperationsSavings object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationsSavings":{"description":"All-time time saved and time spent, per node and per cluster.","properties":{"clusters":{"description":"Most time saved first.","items":{"$ref":"#/components/schemas/ClusterSavings"},"type":"array"},"days":{"description":"Days with any checkpoint or restore, oldest first.","items":{"$ref":"#/components/schemas/SavingsDay"},"type":"array"},"generated_at_ms":{"format":"int64","type":"integer"},"nodes":{"description":"Most time saved first, at most `SAVINGS_NODE_LIMIT`; clusters are computed from every node.","items":{"$ref":"#/components/schemas/NodeSavings"},"type":"array"}},"required":["generated_at_ms","clusters","nodes","days"],"type":"object"},"ClusterSavings":{"properties":{"cluster_id":{"type":"string"},"elapsed_ns":{"format":"int64","minimum":0,"type":"integer"},"first_ms":{"format":"int64","type":"integer"},"measured_nodes":{"description":"Nodes with a `measured_since_ms`; only these count toward the per-node averages.","format":"int64","minimum":0,"type":"integer"},"nodes":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"saved_per_day_per_node_ns":{"description":"Mean of the measured nodes' `saved_per_day_ns`.","format":"double","type":"number"},"saved_per_month_per_node_ns":{"description":"Mean of the measured nodes' `saved_per_month_ns`.","format":"double","type":"number"},"savings_pairs":{"format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","nodes","first_ms","elapsed_ns","savings_pairs","saved_ns","measured_nodes","saved_per_day_per_node_ns","saved_per_month_per_node_ns"],"type":"object"},"SavingsDay":{"description":"One UTC day of `OperationsSavings`, by when each operation finished.","properties":{"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"day_ms":{"format":"int64","type":"integer"},"elapsed_ns":{"format":"int64","minimum":0,"type":"integer"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"savings_pairs":{"format":"int64","minimum":0,"type":"integer"}},"required":["day_ms","saved_ns","savings_pairs","elapsed_ns","checkpoints","restores"],"type":"object"},"NodeSavings":{"properties":{"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"cluster_id":{"type":"string"},"elapsed_ns":{"description":"Time Cedana spent checkpointing and restoring on this node, all attempts.","format":"int64","minimum":0,"type":"integer"},"first_ms":{"description":"First checkpoint or restore started on this node.","format":"int64","type":"integer"},"last_ms":{"format":"int64","type":"integer"},"measured_since_ms":{"description":"First operation here with pod start times recorded; the averages run from here to now, and are 0 without one.","format":"int64","type":["integer","null"]},"node_name":{"type":"string"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"description":"Sum over those pairs of source cold start minus restore, floored at 0 per pair.","format":"int64","minimum":0,"type":"integer"},"saved_per_day_ns":{"description":"`saved_ns` per 24h since `measured_since_ms` (at least one day).","format":"double","type":"number"},"saved_per_month_ns":{"description":"`saved_ns` per calendar month since `measured_since_ms`, counting the first and current months.","format":"double","type":"number"},"savings_pairs":{"description":"Restores here with PodScheduled→Ready for both the restored pod and its checkpoint's source pod.","format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","node_name","first_ms","last_ms","checkpoints","restores","elapsed_ns","savings_pairs","saved_ns","saved_per_day_ns","saved_per_month_ns"],"type":"object"}}}}
```

## The OperationsSummary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OperationsSummary":{"description":"Windowed aggregates over the same facts and bucket boundaries as the Prometheus export.","properties":{"artifact_size_buckets":{"items":{"$ref":"#/components/schemas/HistogramBucket"},"type":"array"},"attempts":{"format":"int64","minimum":0,"type":"integer"},"failed":{"format":"int64","minimum":0,"type":"integer"},"failures":{"items":{"$ref":"#/components/schemas/FailureSummary"},"type":"array"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"nodes":{"description":"Nodes that ran a checkpoint or restore in the window, busiest first.","items":{"$ref":"#/components/schemas/NodeSummary"},"type":"array"},"operations":{"items":{"$ref":"#/components/schemas/OperationTotals"},"type":"array"},"stages":{"items":{"$ref":"#/components/schemas/StageSummary"},"type":"array"},"step_seconds":{"format":"int64","type":"integer"},"succeeded":{"format":"int64","minimum":0,"type":"integer"},"tiers":{"items":{"$ref":"#/components/schemas/TierSummary"},"type":"array"},"timeline":{"items":{"$ref":"#/components/schemas/TimelinePoint"},"type":"array"},"window_seconds":{"format":"int64","type":"integer"}},"required":["window_seconds","step_seconds","attempts","succeeded","failed","fallbacks","operations","artifact_size_buckets","stages","failures","tiers","timeline","nodes"],"type":"object"},"HistogramBucket":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"le":{"description":"Upper bound of the bucket (seconds or bytes); `null` marks the overflow bucket above the last bound.","format":"double","type":["number","null"]}},"required":["count"],"type":"object"},"FailureSummary":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"reason":{"type":"string"},"stage":{"type":"string"}},"required":["operation","stage","reason","count"],"type":"object"},"NodeSummary":{"properties":{"bytes_total":{"description":"Bytes written by successful checkpoints on this node.","format":"int64","minimum":0,"type":"integer"},"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"cluster_id":{"type":"string"},"cold_start_p50_ns":{"description":"Source pod's PodScheduled→Ready, i.e. what the workload took to start without a checkpoint.","format":"double","type":"number"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"last_ms":{"format":"int64","type":"integer"},"node_name":{"type":"string"},"restore_p50_ns":{"format":"double","type":"number"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"savings_pairs":{"description":"Successful restores on this node with PodScheduled→Ready for both the restored pod and its\ncheckpoint's source pod; the three fields below are over these pairs (0 when there are none).","format":"int64","minimum":0,"type":"integer"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["cluster_id","node_name","checkpoints","restores","succeeded","failed","fallbacks","bytes_total","last_ms","savings_pairs","restore_p50_ns","cold_start_p50_ns","saved_ns"],"type":"object"},"OperationTotals":{"properties":{"attempts":{"format":"int64","minimum":0,"type":"integer"},"bytes_total":{"format":"int64","minimum":0,"type":"integer"},"duration_buckets":{"items":{"$ref":"#/components/schemas/HistogramBucket"},"type":"array"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"p95_ns":{"format":"double","type":"number"},"pause_p50_ns":{"description":"Checkpoints: pause percentiles over attempts with a pause recorded (0 otherwise).","format":"double","type":"number"},"pause_p95_ns":{"format":"double","type":"number"},"succeeded":{"format":"int64","minimum":0,"type":"integer"},"to_ready_count":{"format":"int64","minimum":0,"type":"integer"},"to_ready_p50_ns":{"description":"Restores: PodScheduled→Ready percentiles over attempts whose pod reached Ready (0 otherwise).","format":"double","type":"number"},"to_ready_p95_ns":{"format":"double","type":"number"}},"required":["operation","attempts","succeeded","failed","fallbacks","p50_ns","p95_ns","bytes_total","duration_buckets","pause_p50_ns","pause_p95_ns","to_ready_p50_ns","to_ready_p95_ns","to_ready_count"],"type":"object"},"StageSummary":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"p95_ns":{"format":"double","type":"number"},"stage":{"type":"string"},"total_ns":{"format":"int64","minimum":0,"type":"integer"}},"required":["operation","stage","count","p50_ns","p95_ns","total_ns"],"type":"object"},"TierSummary":{"properties":{"attempts":{"format":"int64","minimum":0,"type":"integer"},"bytes_total":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"storage_tier":{"type":"string"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["operation","storage_tier","attempts","succeeded","p50_ns","bytes_total"],"type":"object"},"TimelinePoint":{"properties":{"bucket_ms":{"format":"int64","type":"integer"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["bucket_ms","operation","succeeded","failed","fallbacks"],"type":"object"}}}}
```

## The OrgCheckpointSavings object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OrgCheckpointSavings":{"description":"Organization-level checkpoint savings summary","properties":{"avg_checkpoint_interval_seconds":{"format":"double","type":["number","null"]},"pods_protected":{"format":"int64","type":["integer","null"]},"refreshed_at":{"format":"date-time","type":["string","null"]},"total_checkpoint_overhead_ns":{"format":"int64","type":["integer","null"]},"total_checkpoint_storage_bytes":{"format":"int64","type":["integer","null"]},"total_checkpoints":{"format":"int64","type":["integer","null"]},"total_estimated_savings":{"description":"Total estimated savings across all pods (spot vs on-demand)","format":"double","type":["number","null"]},"total_heartbeat_checkpoints":{"format":"int64","type":["integer","null"]},"total_manual_checkpoints":{"format":"int64","type":["integer","null"]},"total_time_protected_seconds":{"format":"double","type":["number","null"]},"worst_case_recovery_point_seconds":{"format":"double","type":["number","null"]}},"type":"object"}}}}
```

## The OtelCredsResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"OtelCredsResponse":{"properties":{"OTEL_EXPORTER_OTLP_ENDPOINT":{"type":"string"},"OTEL_EXPORTER_OTLP_HEADERS":{"type":"string"}},"required":["OTEL_EXPORTER_OTLP_ENDPOINT","OTEL_EXPORTER_OTLP_HEADERS"],"type":"object"}}}}
```

## The PaginatedCheckpointResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedCheckpointResponse":{"properties":{"checkpoints":{"items":{"$ref":"#/components/schemas/Checkpoint"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["checkpoints","total_count"],"type":"object"},"Checkpoint":{"description":"Checkpoint is basic unit for cedana service operation\nit stores all the information regarding the snapshot we can use to save and then restore state","properties":{"checksum":{"type":["string","null"]},"delta":{"description":"Whether this checkpoint is a (GPU delta) increment. Authoritative even\nwhen parent_checkpoint_id is null (malformed id at ingest, parent deleted)","type":"boolean"},"gpu":{"type":"string"},"id":{"format":"uuid","type":"string"},"info":{},"name":{"type":["string","null"]},"parent_checkpoint_id":{"description":"Checkpoint this one is an increment of; null for full checkpoints and\nfor deltas whose parent is unknown or deleted","format":"uuid","type":["string","null"]},"platform":{"type":"string"},"status":{"$ref":"#/components/schemas/CheckpointStatus"}},"required":["id","status","gpu","platform","delta"],"type":"object"},"CheckpointStatus":{"enum":["initializing","updated_info","possibly_uploaded","ready","deprecated"],"type":"string"}}}}
```

## The PaginatedJobResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedJobResponse":{"properties":{"available_filters":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AvailableFilters"}]},"jobs":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["jobs","total_count"],"type":"object"},"AvailableFilters":{"properties":{"namespaces":{"items":{"type":"string"},"type":"array"},"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses","namespaces"],"type":"object"},"JobResponse":{"properties":{"age":{"type":"string"},"completions":{"type":["string","null"]},"duration":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"monitored_by_policies":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int32","type":["integer","null"]},"pod_ids":{"items":{"type":"string"},"type":"array"},"policy_count":{"format":"int32","type":["integer","null"]},"priority":{"format":"int32","type":["integer","null"]},"startTime":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","age","monitored_by_policies","pod_ids"],"type":"object"}}}}
```

## The PaginatedPipelinePolicyResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedPipelinePolicyResponse":{"properties":{"policies":{"items":{"$ref":"#/components/schemas/PipelinePolicyResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["policies","total_count"],"type":"object"},"PipelinePolicyResponse":{"description":"Response for pipeline-based policies","properties":{"id":{"type":"string"},"job_count":{"format":"int32","type":["integer","null"]},"name":{"type":["string","null"]},"pipeline":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PolicyPipeline"}]},"pod_count":{"format":"int32","type":"integer"},"status":{"type":"string"},"timestamp":{"type":["string","null"]}},"required":["id","status","pod_count"],"type":"object"},"PolicyPipeline":{"description":"Complete policy pipeline definition","properties":{"action":{"$ref":"#/components/schemas/PipelineAction"},"filter":{"$ref":"#/components/schemas/PipelineFilter"},"trigger":{"$ref":"#/components/schemas/PipelineTrigger"}},"required":["trigger","filter","action"],"type":"object"},"PipelineAction":{"description":"Action defines WHAT to do when triggered","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/CheckpointActionConfig"},"type":{"enum":["checkpoint"],"type":"string"}},"required":["config","type"],"type":"object"}]},"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"},"PipelineFilter":{"description":"Filter defines WHAT resources are targeted","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/NamespaceFilterConfig"},"type":{"enum":["namespace"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/PodsFilterConfig"},"type":{"enum":["pods"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/JobsFilterConfig"},"type":{"enum":["jobs"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/SlurmJobsFilterConfig"},"type":{"enum":["slurm_jobs"],"type":"string"}},"required":["config","type"],"type":"object"}]},"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"},"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"},"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"PipelineTrigger":{"description":"Trigger defines WHEN a policy activates","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/HeartbeatTriggerConfig"},"type":{"enum":["heartbeat"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/MaintenanceTriggerConfig"},"type":{"enum":["maintenance"],"type":"string"}},"required":["config","type"],"type":"object"}]},"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"},"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The PaginatedPodResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedPodResponse":{"properties":{"available_filters":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AvailableFilters"}]},"pods":{"items":{"$ref":"#/components/schemas/PodResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["pods","total_count"],"type":"object"},"AvailableFilters":{"properties":{"namespaces":{"items":{"type":"string"},"type":"array"},"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses","namespaces"],"type":"object"},"PodResponse":{"properties":{"age":{"type":"string"},"cluster_id":{"description":"Cluster the pod runs on; null if the controller has not linked it yet","format":"uuid","type":["string","null"]},"id":{"format":"uuid","type":"string"},"monitored_by_policies":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"namespace":{"type":"string"},"node":{"type":"string"},"ready":{"type":"string"},"restarts":{"format":"int32","type":"integer"},"start_time":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","age","ready","node","restarts","monitored_by_policies"],"type":"object"}}}}
```

## The PaginatedPolicyResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedPolicyResponse":{"properties":{"automatic_policies":{"description":"Auto-restore policies (only included when include_automatic=true)","items":{"$ref":"#/components/schemas/AutoRestorePolicyInfo"},"type":["array","null"]},"policies":{"items":{"$ref":"#/components/schemas/PolicyResponse"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["policies","total_count"],"type":"object"},"AutoRestorePolicyInfo":{"description":"Auto-restore policy info - represents pods/jobs with CEDANA_CHECKPOINT env var","properties":{"checkpoint_id":{"description":"The CEDANA_CHECKPOINT value (checkpoint name)","type":"string"},"cluster_id":{"description":"Cluster ID","type":"string"},"created_at":{"description":"When the resource was created","type":["string","null"]},"id":{"description":"Virtual ID based on the job/pod ID","type":"string"},"name":{"description":"The job or pod name","type":"string"},"namespace":{"description":"Namespace of the resource","type":"string"},"pod_count":{"description":"Number of pods (1 for pods, count for jobs)","format":"int32","type":"integer"},"policy_status":{"description":"Mapped policy status: \"active\", \"completed\", or \"disabled\"","type":"string"},"resource_type":{"description":"Type of resource: \"job\" or \"pod\"","type":"string"},"status":{"description":"Original job/pod status","type":"string"}},"required":["id","name","namespace","cluster_id","resource_type","checkpoint_id","pod_count","status","policy_status"],"type":"object"},"PolicyResponse":{"properties":{"cluster_id":{"description":"Cluster and namespace the policy targets, from `details`.","type":["string","null"]},"end_time":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"input":{"format":"int64","type":"integer"},"job_count":{"format":"int64","type":["integer","null"]},"name":{"type":["string","null"]},"namespace":{"type":["string","null"]},"pod_count":{"format":"int64","type":"integer"},"policy_type":{"type":"string"},"resource":{"type":"string"},"resource_list":{"items":{"type":"string"},"type":"array"},"start_time":{"description":"Window bounds for maintenance policies; absent for other types.","format":"date-time","type":["string","null"]},"status":{"type":"string"},"timestamp":{"format":"date-time","type":["string","null"]}},"required":["id","status","policy_type","input","resource","resource_list","pod_count"],"type":"object"}}}}
```

## The PaginatedSlurmClusterResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedSlurmClusterResponse":{"properties":{"clusters":{"items":{"$ref":"#/components/schemas/SlurmCluster"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["clusters","total_count"],"type":"object"},"SlurmCluster":{"properties":{"id":{"format":"uuid","type":"string"},"metadata":{},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"type":"object"}}}}
```

## The PaginatedSlurmJobResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedSlurmJobResponse":{"description":"One page of SLURM jobs plus the total number of jobs matching the query,\nso clients can compute page counts without walking every page.","properties":{"available_filters":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SlurmAvailableFilters"}]},"jobs":{"items":{"$ref":"#/components/schemas/SlurmJob"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["jobs","total_count"],"type":"object"},"SlurmAvailableFilters":{"description":"Distinct filter values across all jobs (not just the current page)","properties":{"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses"],"type":"object"},"SlurmJob":{"description":"SlurmJob represents a SLURM job stored in the database","properties":{"account":{"type":["string","null"]},"cluster_id":{"type":"string"},"derived_ec":{"description":"Numeric derived exit code (slurmdbd derived_ec — uint32, widened to i64)","format":"int64","type":["integer","null"]},"derived_es":{"description":"Human-readable exit reason (e.g. \"Preempted by higher-priority job\")","type":["string","null"]},"end_time":{"description":"Unix epoch seconds; 0 means not yet ended","format":"int64","type":["integer","null"]},"exit_code":{"format":"int64","type":["integer","null"]},"failed_node":{"description":"Node that triggered job failure, if any","type":["string","null"]},"id":{"format":"int64","type":"integer"},"job_id":{"format":"int64","type":"integer"},"kill_requid":{"description":"UID that issued the kill/preempt signal (uid_t / uint32, widened to i64)","format":"int64","type":["integer","null"]},"name":{"type":"string"},"nodes":{"type":"string"},"num_cpus":{"format":"int64","type":["integer","null"]},"num_nodes":{"format":"int64","type":["integer","null"]},"partition":{"type":["string","null"]},"priority":{"format":"int64","type":"integer"},"start_time":{"description":"Unix epoch seconds; 0 means not set","format":"int64","type":"integer"},"state_reason_prev":{"description":"Reason code for prior state transition","format":"int64","type":["integer","null"]},"status":{"type":"string"},"submit_time":{"description":"Unix epoch seconds; 0 means not set","format":"int64","type":"integer"},"time_suspended":{"description":"Seconds the job spent suspended","format":"int64","type":["integer","null"]},"work_dir":{"type":["string","null"]}},"type":"object"}}}}
```

## The PaginatedSlurmNodeResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedSlurmNodeResponse":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/SlurmNode"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["nodes","total_count"],"type":"object"},"SlurmNode":{"properties":{"cpus":{"format":"int32","type":["integer","null"]},"id":{"format":"uuid","type":"string"},"memory":{"format":"int64","type":["integer","null"]},"name":{"type":["string","null"]},"status":{"type":["string","null"]}},"type":"object"}}}}
```

## The PaginatedSlurmPartitionResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PaginatedSlurmPartitionResponse":{"properties":{"partitions":{"items":{"$ref":"#/components/schemas/SlurmPartition"},"type":"array"},"total_count":{"format":"int64","type":"integer"}},"required":["partitions","total_count"],"type":"object"},"SlurmPartition":{"properties":{"default_time":{"format":"int64","type":"integer"},"id":{"format":"uuid","type":"string"},"is_default":{"type":"boolean"},"max_time":{"format":"int64","type":"integer"},"name":{"type":"string"},"nodes":{"type":"string"},"priority_tier":{"format":"int32","type":"integer"},"state":{"type":"string"},"total_cpus":{"format":"int32","type":"integer"},"total_nodes":{"format":"int32","type":"integer"}},"required":["id","name","state","total_nodes","total_cpus","nodes","max_time","default_time","priority_tier","is_default"],"type":"object"}}}}
```

## The PartitionNodeCount object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PartitionNodeCount":{"description":"Node count per state for a partition","properties":{"count":{"format":"double","type":"number"},"partition_name":{"type":"string"},"state":{"type":"string"}},"required":["partition_name","state","count"],"type":"object"}}}}
```

## The PartitionStats object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PartitionStats":{"properties":{"cpu_load":{"format":"double","type":["number","null"]},"free_memory":{"format":"double","type":["number","null"]},"idle_cpus":{"format":"double","type":["number","null"]},"idle_nodes":{"format":"double","type":["number","null"]},"partition_name":{"type":"string"},"real_memory":{"format":"double","type":["number","null"]},"timestamp":{"format":"int64","type":"integer"},"total_cpus":{"format":"double","type":["number","null"]}},"required":["partition_name","timestamp"],"type":"object"}}}}
```

## The PartitionTimeSeries object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PartitionTimeSeries":{"properties":{"cpu_load":{"items":{"$ref":"#/components/schemas/TimeSeriesDataPoint"},"type":"array"},"free_memory":{"items":{"$ref":"#/components/schemas/TimeSeriesDataPoint"},"type":"array"},"partition_name":{"type":"string"}},"required":["partition_name","cpu_load","free_memory"],"type":"object"},"TimeSeriesDataPoint":{"properties":{"timestamp":{"format":"int64","type":"integer"},"value":{"format":"double","type":"number"}},"required":["timestamp","value"],"type":"object"}}}}
```

## The PendingResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PendingResponse":{"properties":{"pending_profile_id":{"type":"string"},"retry_after_ms":{"format":"int64","type":"integer"}},"required":["pending_profile_id","retry_after_ms"],"type":"object"}}}}
```

## The PipelineAction object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PipelineAction":{"description":"Action defines WHAT to do when triggered","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/CheckpointActionConfig"},"type":{"enum":["checkpoint"],"type":"string"}},"required":["config","type"],"type":"object"}]},"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"}}}}
```

## The PipelineFilter object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PipelineFilter":{"description":"Filter defines WHAT resources are targeted","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/NamespaceFilterConfig"},"type":{"enum":["namespace"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/PodsFilterConfig"},"type":{"enum":["pods"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/JobsFilterConfig"},"type":{"enum":["jobs"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/SlurmJobsFilterConfig"},"type":{"enum":["slurm_jobs"],"type":"string"}},"required":["config","type"],"type":"object"}]},"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"},"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"},"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"}}}}
```

## The PipelinePolicyRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PipelinePolicyRequest":{"description":"Request to create a policy using the pipeline format","properties":{"name":{"type":["string","null"]},"pipeline":{"$ref":"#/components/schemas/PolicyPipeline"}},"required":["pipeline"],"type":"object"},"PolicyPipeline":{"description":"Complete policy pipeline definition","properties":{"action":{"$ref":"#/components/schemas/PipelineAction"},"filter":{"$ref":"#/components/schemas/PipelineFilter"},"trigger":{"$ref":"#/components/schemas/PipelineTrigger"}},"required":["trigger","filter","action"],"type":"object"},"PipelineAction":{"description":"Action defines WHAT to do when triggered","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/CheckpointActionConfig"},"type":{"enum":["checkpoint"],"type":"string"}},"required":["config","type"],"type":"object"}]},"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"},"PipelineFilter":{"description":"Filter defines WHAT resources are targeted","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/NamespaceFilterConfig"},"type":{"enum":["namespace"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/PodsFilterConfig"},"type":{"enum":["pods"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/JobsFilterConfig"},"type":{"enum":["jobs"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/SlurmJobsFilterConfig"},"type":{"enum":["slurm_jobs"],"type":"string"}},"required":["config","type"],"type":"object"}]},"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"},"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"},"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"PipelineTrigger":{"description":"Trigger defines WHEN a policy activates","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/HeartbeatTriggerConfig"},"type":{"enum":["heartbeat"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/MaintenanceTriggerConfig"},"type":{"enum":["maintenance"],"type":"string"}},"required":["config","type"],"type":"object"}]},"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"},"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The PipelinePolicyResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PipelinePolicyResponse":{"description":"Response for pipeline-based policies","properties":{"id":{"type":"string"},"job_count":{"format":"int32","type":["integer","null"]},"name":{"type":["string","null"]},"pipeline":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PolicyPipeline"}]},"pod_count":{"format":"int32","type":"integer"},"status":{"type":"string"},"timestamp":{"type":["string","null"]}},"required":["id","status","pod_count"],"type":"object"},"PolicyPipeline":{"description":"Complete policy pipeline definition","properties":{"action":{"$ref":"#/components/schemas/PipelineAction"},"filter":{"$ref":"#/components/schemas/PipelineFilter"},"trigger":{"$ref":"#/components/schemas/PipelineTrigger"}},"required":["trigger","filter","action"],"type":"object"},"PipelineAction":{"description":"Action defines WHAT to do when triggered","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/CheckpointActionConfig"},"type":{"enum":["checkpoint"],"type":"string"}},"required":["config","type"],"type":"object"}]},"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"},"PipelineFilter":{"description":"Filter defines WHAT resources are targeted","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/NamespaceFilterConfig"},"type":{"enum":["namespace"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/PodsFilterConfig"},"type":{"enum":["pods"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/JobsFilterConfig"},"type":{"enum":["jobs"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/SlurmJobsFilterConfig"},"type":{"enum":["slurm_jobs"],"type":"string"}},"required":["config","type"],"type":"object"}]},"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"},"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"},"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"PipelineTrigger":{"description":"Trigger defines WHEN a policy activates","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/HeartbeatTriggerConfig"},"type":{"enum":["heartbeat"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/MaintenanceTriggerConfig"},"type":{"enum":["maintenance"],"type":"string"}},"required":["config","type"],"type":"object"}]},"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"},"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The PipelineTrigger object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PipelineTrigger":{"description":"Trigger defines WHEN a policy activates","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/HeartbeatTriggerConfig"},"type":{"enum":["heartbeat"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/MaintenanceTriggerConfig"},"type":{"enum":["maintenance"],"type":"string"}},"required":["config","type"],"type":"object"}]},"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"},"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The Plugin object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Plugin":{"properties":{"binaries":{"items":{"$ref":"#/components/schemas/PluginBinary"},"type":["array","null"]},"latest_version":{"type":"string"},"libraries":{"items":{"$ref":"#/components/schemas/PluginBinary"},"type":["array","null"]},"name":{"type":"string"},"published_at":{"format":"date-time","type":"string"},"size":{"format":"int64","type":"integer"},"status":{"$ref":"#/components/schemas/Status"},"type":{"$ref":"#/components/schemas/PluginType"},"version":{"type":"string"}},"required":["name","type","status","version","published_at"],"type":"object"},"PluginBinary":{"properties":{"checksum":{"type":["string","null"]},"install_dir":{"type":"string"},"name":{"type":"string"}},"required":["name","install_dir"],"type":"object"},"Status":{"enum":[0,1,2,3],"type":"integer"},"PluginType":{"enum":[0,1,2,3,4],"type":"integer"}}}}
```

## The PluginBinary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PluginBinary":{"properties":{"checksum":{"type":["string","null"]},"install_dir":{"type":"string"},"name":{"type":"string"}},"required":["name","install_dir"],"type":"object"}}}}
```

## The PluginType object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PluginType":{"enum":[0,1,2,3,4],"type":"integer"}}}}
```

## The PluginUploadPayload object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PluginUploadPayload":{"properties":{"arch":{"type":["string","null"]},"build":{"type":["string","null"]},"checksum":{"type":["string","null"]},"repository":{"type":"string"},"version":{"type":["string","null"]}},"type":"object"}}}}
```

## The PodCheckpointCpu object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PodCheckpointCpu":{"description":"Per-pod checkpoint resource data for efficiency calculations","properties":{"checkpoint_count":{"description":"Total number of checkpoints for this pod","format":"int64","type":"integer"},"checkpoint_timestamp":{"description":"Timestamp of the last checkpoint","type":"string"},"cpu_at_checkpoint":{"description":"CPU usage (seconds) at the time of the last checkpoint\nThis represents the work preserved by the checkpoint","format":"double","type":"number"},"gpu_memory_used_mib":{"description":"GPU memory used (MiB) at checkpoint time, if GPU was used","format":"double","type":["number","null"]},"gpu_model":{"description":"GPU model name (e.g., \"NVIDIA H100 80GB HBM3\"), if GPU was used","type":["string","null"]},"gpu_utilization_at_checkpoint":{"description":"GPU utilization at checkpoint time (percentage 0-100), if GPU was used\nDerived from DCGM_FI_DEV_GPU_UTIL metric","format":"double","type":["number","null"]},"namespace":{"description":"Namespace","type":"string"},"pod_name":{"description":"Pod name","type":"string"}},"required":["pod_name","namespace","cpu_at_checkpoint","checkpoint_timestamp","checkpoint_count"],"type":"object"}}}}
```

## The PodCheckpointSavings object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PodCheckpointSavings":{"description":"Per-pod checkpoint savings data","properties":{"avg_interval_seconds":{"description":"Average interval between checkpoints (seconds)","format":"double","type":["number","null"]},"capacity_type":{"description":"Node capacity type: \"spot\" or \"on-demand\"","type":["string","null"]},"checkpoint_count":{"format":"int64","type":["integer","null"]},"cluster_id":{"type":["string","null"]},"estimated_savings":{"description":"Estimated savings (if spot instance)","format":"double","type":["number","null"]},"first_checkpoint":{"format":"date-time","type":["string","null"]},"gpu":{"type":["string","null"]},"heartbeat_checkpoints":{"description":"Number of automatic heartbeat checkpoints","format":"int64","type":["integer","null"]},"instance_type":{"description":"Node instance type (e.g., \"m5.xlarge\", \"n1-standard-4\")","type":["string","null"]},"last_checkpoint":{"format":"date-time","type":["string","null"]},"manual_checkpoints":{"description":"Number of manual checkpoints","format":"int64","type":["integer","null"]},"max_recovery_point_seconds":{"description":"Maximum interval - worst case data loss on failure (seconds)","format":"double","type":["number","null"]},"min_interval_seconds":{"description":"Minimum interval between checkpoints (seconds)","format":"double","type":["number","null"]},"namespace":{"type":["string","null"]},"node_name":{"description":"Node name (for linking to node details page)","type":["string","null"]},"node_region":{"description":"Node region","type":["string","null"]},"ondemand_price_per_hour":{"description":"On-demand price per hour (from user config)","format":"double","type":["number","null"]},"platform":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"protection_efficiency_ratio":{"description":"Ratio of time protected to checkpoint overhead (higher = more efficient)","format":"double","type":["number","null"]},"refreshed_at":{"format":"date-time","type":["string","null"]},"spot_price_per_hour":{"description":"Spot price per hour (from user config)","format":"double","type":["number","null"]},"time_protected_seconds":{"description":"Total time (seconds) between first and last checkpoint - time \"protected\"","format":"double","type":["number","null"]},"total_checkpoint_duration_ns":{"description":"Total time spent checkpointing (nanoseconds)","format":"int64","type":["integer","null"]},"total_checkpoint_size_bytes":{"description":"Total data checkpointed (bytes)","format":"int64","type":["integer","null"]}},"type":"object"}}}}
```

## The PodResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PodResponse":{"properties":{"age":{"type":"string"},"cluster_id":{"description":"Cluster the pod runs on; null if the controller has not linked it yet","format":"uuid","type":["string","null"]},"id":{"format":"uuid","type":"string"},"monitored_by_policies":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"namespace":{"type":"string"},"node":{"type":"string"},"ready":{"type":"string"},"restarts":{"format":"int32","type":"integer"},"start_time":{"type":["string","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","age","ready","node","restarts","monitored_by_policies"],"type":"object"}}}}
```

## The PodUtilization object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PodUtilization":{"description":"Pod utilization metrics grouped by pod","properties":{"cpu_usage_seconds":{"format":"double","type":"number"},"memory_bytes":{"format":"double","type":"number"},"namespace":{"type":["string","null"]},"node_name":{"type":"string"},"owner_kind":{"description":"Owner kind from kube-state-metrics (e.g., \"Job\", \"ReplicaSet\", \"DaemonSet\", \"StatefulSet\")","type":["string","null"]},"owner_name":{"description":"Owner name from kube-state-metrics (e.g., \"my-job\", \"my-deployment-abc123\")","type":["string","null"]},"pod_name":{"type":["string","null"]},"pod_uid":{"type":"string"},"timestamp":{"type":"string"}},"required":["pod_uid","node_name","cpu_usage_seconds","memory_bytes","timestamp"],"type":"object"}}}}
```

## The PodsFilterConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"}}}}
```

## The Policy object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"}}}}
```

## The PolicyActivityResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyActivityResponse":{"properties":{"failed_checkpoints":{"format":"int64","type":"integer"},"last_checkpoint_at":{"type":["string","null"]},"policy_id":{"type":"string"},"recent_checkpoints":{"items":{"$ref":"#/components/schemas/PolicyCheckpointInfo"},"type":"array"},"successful_checkpoints":{"format":"int64","type":"integer"},"total_checkpoints":{"format":"int64","type":"integer"}},"required":["policy_id","total_checkpoints","successful_checkpoints","failed_checkpoints","recent_checkpoints"],"type":"object"},"PolicyCheckpointInfo":{"properties":{"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"completed_at":{"type":["string","null"]},"duration_ms":{"format":"int64","type":["integer","null"]},"namespace":{"type":"string"},"pod_name":{"type":"string"},"size_bytes":{"format":"int64","type":["integer","null"]},"status":{"type":"string"}},"required":["checkpoint_id","action_id","pod_name","namespace","status"],"type":"object"}}}}
```

## The PolicyCheckpointInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyCheckpointInfo":{"properties":{"action_id":{"type":"string"},"checkpoint_id":{"type":"string"},"completed_at":{"type":["string","null"]},"duration_ms":{"format":"int64","type":["integer","null"]},"namespace":{"type":"string"},"pod_name":{"type":"string"},"size_bytes":{"format":"int64","type":["integer","null"]},"status":{"type":"string"}},"required":["checkpoint_id","action_id","pod_name","namespace","status"],"type":"object"}}}}
```

## The PolicyDeleteRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyDeleteRequest":{"properties":{"id":{"format":"uuid","type":"string"}},"required":["id"],"type":"object"}}}}
```

## The PolicyJobInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyJobInfo":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int64","type":"integer"},"priority":{"format":"int32","type":["integer","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","pod_count"],"type":"object"}}}}
```

## The PolicyJobsResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyJobsResponse":{"properties":{"affected_jobs":{"items":{"$ref":"#/components/schemas/PolicyJobInfo"},"type":"array"},"count":{"format":"int64","type":"integer"},"policy_id":{"type":"string"}},"required":["policy_id","affected_jobs","count"],"type":"object"},"PolicyJobInfo":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"pod_count":{"format":"int64","type":"integer"},"priority":{"format":"int32","type":["integer","null"]},"status":{"type":"string"}},"required":["id","name","namespace","status","pod_count"],"type":"object"}}}}
```

## The PolicyList object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyList":{"properties":{"org":{"$ref":"#/components/schemas/Policy"},"profiles":{"items":{"$ref":"#/components/schemas/ScopedPolicy"},"type":"array"},"team_names":{"description":"Every team named on a profile or a policy.","items":{"type":"string"},"type":"array"},"teams":{"items":{"$ref":"#/components/schemas/ScopedPolicy"},"type":"array"}},"required":["org","teams","profiles","team_names"],"type":"object"},"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"ScopedPolicy":{"allOf":[{"$ref":"#/components/schemas/Policy"},{"properties":{"name":{"description":"The team name or profile id.","type":"string"}},"required":["name"],"type":"object"}]}}}}
```

## The PolicyPipeline object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyPipeline":{"description":"Complete policy pipeline definition","properties":{"action":{"$ref":"#/components/schemas/PipelineAction"},"filter":{"$ref":"#/components/schemas/PipelineFilter"},"trigger":{"$ref":"#/components/schemas/PipelineTrigger"}},"required":["trigger","filter","action"],"type":"object"},"PipelineAction":{"description":"Action defines WHAT to do when triggered","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/CheckpointActionConfig"},"type":{"enum":["checkpoint"],"type":"string"}},"required":["config","type"],"type":"object"}]},"CheckpointActionConfig":{"properties":{"kind":{"type":"string"},"runc_root":{"type":["string","null"]}},"required":["kind"],"type":"object"},"PipelineFilter":{"description":"Filter defines WHAT resources are targeted","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/NamespaceFilterConfig"},"type":{"enum":["namespace"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/PodsFilterConfig"},"type":{"enum":["pods"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/JobsFilterConfig"},"type":{"enum":["jobs"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/SlurmJobsFilterConfig"},"type":{"enum":["slurm_jobs"],"type":"string"}},"required":["config","type"],"type":"object"}]},"NamespaceFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":"string"}},"required":["cluster_id","namespace"],"type":"object"},"PodsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"pod_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"JobsFilterConfig":{"properties":{"cluster_id":{"type":"string"},"namespace":{"type":["string","null"]},"priority":{"format":"int32","type":["integer","null"]}},"required":["cluster_id"],"type":"object"},"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"},"PipelineTrigger":{"description":"Trigger defines WHEN a policy activates","oneOf":[{"properties":{"config":{"$ref":"#/components/schemas/HeartbeatTriggerConfig"},"type":{"enum":["heartbeat"],"type":"string"}},"required":["config","type"],"type":"object"},{"properties":{"config":{"$ref":"#/components/schemas/MaintenanceTriggerConfig"},"type":{"enum":["maintenance"],"type":"string"}},"required":["config","type"],"type":"object"}]},"HeartbeatTriggerConfig":{"properties":{"interval_seconds":{"format":"int32","minimum":0,"type":"integer"},"max_checkpoints":{"description":"Cap on successful checkpoints before auto-disable. Absent = run forever;\nwhen present must be `> 0` (rejected with 400 at creation, not stored).\n`i32` (not u32) bounds an oversized value at deserialization; matches cedana-ui.","format":"int32","type":["integer","null"]}},"required":["interval_seconds"],"type":"object"},"MaintenanceTriggerConfig":{"properties":{"end_time":{"format":"date-time","type":"string"},"start_time":{"format":"date-time","type":"string"}},"required":["start_time","end_time"],"type":"object"}}}}
```

## The PolicyPodResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyPodResponse":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"status":{"type":"string"}},"required":["id","name","namespace","status"],"type":"object"}}}}
```

## The PolicyResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PolicyResponse":{"properties":{"cluster_id":{"description":"Cluster and namespace the policy targets, from `details`.","type":["string","null"]},"end_time":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"input":{"format":"int64","type":"integer"},"job_count":{"format":"int64","type":["integer","null"]},"name":{"type":["string","null"]},"namespace":{"type":["string","null"]},"pod_count":{"format":"int64","type":"integer"},"policy_type":{"type":"string"},"resource":{"type":"string"},"resource_list":{"items":{"type":"string"},"type":"array"},"start_time":{"description":"Window bounds for maintenance policies; absent for other types.","format":"date-time","type":["string","null"]},"status":{"type":"string"},"timestamp":{"format":"date-time","type":["string","null"]}},"required":["id","status","policy_type","input","resource","resource_list","pod_count"],"type":"object"}}}}
```

## The PortMapping object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"PortMapping":{"properties":{"container_port":{"format":"int32","type":"integer"},"host_port":{"format":"int32","type":"integer"}},"required":["host_port","container_port"],"type":"object"}}}}
```

## The Priority object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Priority":{"enum":["batch","standard","interactive"],"type":"string"}}}}
```

## The ProcessState object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ProcessState":{"properties":{"Cmdline":{"type":"string"},"GIDs":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"GPUEnabled":{"type":"boolean"},"Groups":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"Host":{"$ref":"#/components/schemas/Host"},"IsRunning":{"type":"boolean"},"PID":{"format":"int32","minimum":0,"type":"integer"},"StartTime":{"format":"int64","minimum":0,"type":"integer"},"Status":{"type":"string"},"UIDs":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"WorkingDir":{"type":"string"}},"required":["PID","Cmdline","StartTime","WorkingDir","Status","IsRunning","Host"],"type":"object"},"Host":{"properties":{"CPU":{"$ref":"#/components/schemas/HostCpu"},"Hostname":{"type":"string"},"ID":{"type":"string"},"KernelArch":{"type":"string"},"KernelVersion":{"type":"string"},"MAC":{"type":"string"},"Memory":{"$ref":"#/components/schemas/HostMemory"},"OS":{"type":"string"},"Platform":{"type":"string"}},"type":"object"},"HostCpu":{"properties":{"Count":{"format":"int32","type":"integer"},"Family":{"type":"string"},"PhysicalID":{"type":"string"},"VendorID":{"type":"string"}},"type":"object"},"HostMemory":{"properties":{"Total":{"format":"int64","minimum":0,"type":"integer"}},"type":"object"}}}}
```

## The ProfileManifest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ProfileManifest":{"description":"The Kubernetes objects that serve a profile.","properties":{"checkpoint_name":{"type":"string"},"namespace":{"type":"string"},"objects":{"description":"Applied in order with server-side apply; replicas 0 keeps them and stops the pods.","items":{"type":"object"},"type":"array"},"profile_id":{"type":"string"}},"required":["profile_id","namespace","checkpoint_name","objects"],"type":"object"}}}}
```

## The ProfileStartupComparison object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ProfileStartupComparison":{"description":"Cold starts against restores, for one profile.","properties":{"cold":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/StartLatency"}]},"logical_model":{"type":"string"},"profile_id":{"type":"string"},"restored":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/StartLatency"}]},"saved_ms":{"description":"Milliseconds a restore saves at the median.","format":"int64","type":["integer","null"]},"speedup":{"description":"Cold median divided by restore median. Above 1 means restoring is faster.","format":"double","type":["number","null"]},"starts":{"description":"Every start behind the summaries, newest first.","items":{"$ref":"#/components/schemas/WorkerStart"},"type":"array"}},"required":["profile_id","logical_model","starts"],"type":"object"},"StartLatency":{"properties":{"max_ms":{"format":"int64","type":"integer"},"median_ms":{"format":"int64","type":"integer"},"min_ms":{"format":"int64","type":"integer"},"samples":{"minimum":0,"type":"integer"}},"required":["samples","min_ms","median_ms","max_ms"],"type":"object"},"WorkerStart":{"properties":{"checkpoint_path":{"type":["string","null"]},"pod_name":{"type":"string"},"ready_at":{"format":"date-time","type":["string","null"]},"restored":{"description":"True when a restore is bound to this worker pod.","type":"boolean"},"start_time_ms":{"description":"PodScheduled to Ready, in milliseconds.","format":"int64","type":"integer"}},"required":["pod_name","start_time_ms","restored"],"type":"object"}}}}
```

## The ProfileView object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ProfileView":{"allOf":[{"$ref":"#/components/schemas/DeploymentProfile"},{"properties":{"checkpointed":{"description":"A ready checkpoint exists under the profile's current checkpoint name.","type":"boolean"},"policy":{"$ref":"#/components/schemas/EffectivePolicy","description":"The resolved scaling policy; its bounds are the ones the router enforces."},"ready_replicas":{"format":"int64","type":"integer"},"start_kind":{"description":"How the newest worker started: \"restore\" or \"cold\"; null with no worker.","type":["string","null"]},"state":{"description":"\"serving\", \"starting\" or \"scaled_to_zero\".","type":"string"}},"required":["ready_replicas","checkpointed","state","policy"],"type":"object"}],"description":"A profile with its live state, read from the regular pod sync."},"DeploymentProfile":{"properties":{"backend_url":{"type":"string"},"checkpoint_name":{"description":"The `CEDANA_CHECKPOINT` name its workers restore from.","type":"string"},"cluster_id":{"format":"uuid","type":["string","null"]},"desired_replicas":{"format":"int32","type":"integer"},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"exact_model":{"type":"string"},"logical_model":{"type":"string"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"profile_revision":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"spec":{"$ref":"#/components/schemas/ModelSpec"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"The team whose policy and caps apply; null for none.","type":["string","null"]}},"required":["profile_id","logical_model","exact_model","profile_revision","backend_url","estimated_cold_start_ms","namespace","checkpoint_name","spec","min_replicas","max_replicas","target_concurrency","max_queue_depth","scale_down_idle_seconds","desired_replicas"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"},"EffectivePolicy":{"properties":{"idle_seconds":{"format":"int64","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"never_park":{"type":"boolean"},"priority":{"$ref":"#/components/schemas/Priority"},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":"array"},"sources":{"$ref":"#/components/schemas/Sources"},"team":{"type":["string","null"]}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules","sources"],"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"}}}}
```

## The RegistryCredentials object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RegistryCredentials":{"properties":{"password":{"type":"string"},"username":{"type":"string"}},"required":["username","password"],"type":"object"}}}}
```

## The Residency object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Residency":{"description":"Where a checkpoint currently lives. `node_name` is empty for NFS, which every node shares.","properties":{"bytes":{"format":"int64","minimum":0,"type":"integer"},"node_name":{"type":"string"},"since_ms":{"format":"int64","type":"integer"},"state":{"description":"writing | persisting | copying | present","type":"string"},"tier":{"type":"string"}},"required":["node_name","tier","state","bytes","since_ms"],"type":"object"}}}}
```

## The ResolveRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ResolveRequest":{"properties":{"active_streams_by_profile":{"additionalProperties":{"format":"int64","type":"integer"},"propertyNames":{"type":"string"},"type":"object"},"authorization_id":{"format":"uuid","type":"string"},"logical_model":{"type":"string"},"preferred_profile_id":{"type":["string","null"]},"queued_requests":{"format":"int64","type":"integer"},"request_id":{"type":"string"}},"required":["authorization_id","request_id","logical_model"],"type":"object"}}}}
```

## The ResolveResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ResolveResponse":{"properties":{"activation_path":{"type":"string"},"decision_source":{"type":"string"},"fallback_used":{"type":"boolean"},"profile_id":{"type":"string"},"route_generation":{"format":"int64","type":"integer"},"target_name":{"type":"string"},"upstream_model":{"type":"string"}},"required":["profile_id","target_name","upstream_model","route_generation","decision_source","fallback_used","activation_path"],"type":"object"}}}}
```

## The RestoreEventPayload object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreEventPayload":{"additionalProperties":{},"properties":{"action_id":{"type":["string","null"]},"action_ids":{"items":{"type":"string"},"type":["array","null"]},"action_scope":{"type":["string","null"]},"checkpoint_action_id":{"type":["string","null"]},"checkpoint_id":{"type":["string","null"]},"cluster_id":{"type":["string","null"]},"completed_at":{"format":"date-time","type":["string","null"]},"error_message":{"type":["string","null"]},"kind":{"type":["string","null"]},"metadata":{},"path_id":{"type":["string","null"]},"profile_available_on_error":{"type":["boolean","null"]},"profile_object_path":{"type":["string","null"]},"reason":{"type":["string","null"]},"request_metadata":{},"restore_path":{"type":["string","null"]},"restore_uuid":{"type":"string"},"runtime_metadata":{},"started_at":{"format":"date-time","type":["string","null"]},"status":{"type":["string","null"]},"storage_provider":{"type":["string","null"]},"workload_type":{"type":["string","null"]}},"required":["restore_uuid"],"type":"object"}}}}
```

## The RestoreEventResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreEventResponse":{"properties":{"restore_uuid":{"format":"uuid","type":"string"},"status":{"type":"string"}},"required":["restore_uuid","status"],"type":"object"}}}}
```

## The RestoreOverrides object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreOverrides":{"properties":{"criu_opts":{"type":["string","null"]},"pod_name":{"type":["string","null"]}},"type":"object"}}}}
```

## The RestorePod object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestorePod":{"properties":{"action_id":{"type":"string"},"cluster_id":{"type":"string"},"overrides":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RestoreOverrides"}]},"reason":{"$ref":"#/components/schemas/RestoreReason"}},"required":["action_id","reason"],"type":"object"},"RestoreOverrides":{"properties":{"criu_opts":{"type":["string","null"]},"pod_name":{"type":["string","null"]}},"type":"object"},"RestoreReason":{"enum":["nodeTermination","nodeUnschedulable","manual"],"type":"string"}}}}
```

## The RestoreProfileUploadResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreProfileUploadResponse":{"properties":{"profile_object_path":{"type":["string","null"]},"restore_uuid":{"format":"uuid","type":"string"}},"required":["restore_uuid"],"type":"object"}}}}
```

## The RestoreReason object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreReason":{"enum":["nodeTermination","nodeUnschedulable","manual"],"type":"string"}}}}
```

## The RestoreSlurmJob object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RestoreSlurmJob":{"properties":{"action_id":{"type":"string"},"cluster_id":{"type":["string","null"]},"reason":{"$ref":"#/components/schemas/SlurmRestoreReason"}},"required":["action_id"],"type":"object"},"SlurmRestoreReason":{"enum":["nodeTermination","nodeUnschedulable","manual"],"type":"string"}}}}
```

## The RouterConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RouterConfig":{"properties":{"generation":{"format":"int64","type":"integer"},"routes":{"items":{"$ref":"#/components/schemas/RouterRouteConfig"},"type":"array"},"schema_version":{"format":"int32","type":"integer"}},"required":["schema_version","generation","routes"],"type":"object"},"RouterRouteConfig":{"properties":{"classifier_profile_id":{"type":["string","null"]},"classifier_prompt":{"type":["string","null"]},"classifier_response_schema":{"type":["string","null"]},"generation":{"format":"int64","type":"integer"},"logical_model":{"type":"string"},"mode":{"type":"string"},"queue_timeout_ms":{"format":"int64","type":"integer"},"targets":{"items":{"$ref":"#/components/schemas/RouterTargetConfig"},"type":"array"}},"required":["logical_model","mode","queue_timeout_ms","generation","targets"],"type":"object"},"RouterTargetConfig":{"properties":{"current_replicas":{"format":"int32","type":"integer"},"draining":{"type":"boolean"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"node_hourly_usd":{"format":"double","type":"number"},"priority":{"format":"int32","type":"integer"},"profile_id":{"type":"string"},"ready":{"type":"boolean"},"service_url":{"description":"Stable internal service URL; never contains an activation/generation.","type":"string"},"target_concurrency":{"format":"int32","type":"integer"},"tier":{"type":"string"},"upstream_model":{"type":"string"}},"required":["profile_id","tier","priority","service_url","upstream_model","ready","draining","min_replicas","max_replicas","current_replicas","target_concurrency","max_queue_depth","node_hourly_usd"],"type":"object"}}}}
```

## The RouterRouteConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RouterRouteConfig":{"properties":{"classifier_profile_id":{"type":["string","null"]},"classifier_prompt":{"type":["string","null"]},"classifier_response_schema":{"type":["string","null"]},"generation":{"format":"int64","type":"integer"},"logical_model":{"type":"string"},"mode":{"type":"string"},"queue_timeout_ms":{"format":"int64","type":"integer"},"targets":{"items":{"$ref":"#/components/schemas/RouterTargetConfig"},"type":"array"}},"required":["logical_model","mode","queue_timeout_ms","generation","targets"],"type":"object"},"RouterTargetConfig":{"properties":{"current_replicas":{"format":"int32","type":"integer"},"draining":{"type":"boolean"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"node_hourly_usd":{"format":"double","type":"number"},"priority":{"format":"int32","type":"integer"},"profile_id":{"type":"string"},"ready":{"type":"boolean"},"service_url":{"description":"Stable internal service URL; never contains an activation/generation.","type":"string"},"target_concurrency":{"format":"int32","type":"integer"},"tier":{"type":"string"},"upstream_model":{"type":"string"}},"required":["profile_id","tier","priority","service_url","upstream_model","ready","draining","min_replicas","max_replicas","current_replicas","target_concurrency","max_queue_depth","node_hourly_usd"],"type":"object"}}}}
```

## The RouterTargetConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"RouterTargetConfig":{"properties":{"current_replicas":{"format":"int32","type":"integer"},"draining":{"type":"boolean"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"node_hourly_usd":{"format":"double","type":"number"},"priority":{"format":"int32","type":"integer"},"profile_id":{"type":"string"},"ready":{"type":"boolean"},"service_url":{"description":"Stable internal service URL; never contains an activation/generation.","type":"string"},"target_concurrency":{"format":"int32","type":"integer"},"tier":{"type":"string"},"upstream_model":{"type":"string"}},"required":["profile_id","tier","priority","service_url","upstream_model","ready","draining","min_replicas","max_replicas","current_replicas","target_concurrency","max_queue_depth","node_hourly_usd"],"type":"object"}}}}
```

## The SavingsDay object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SavingsDay":{"description":"One UTC day of `OperationsSavings`, by when each operation finished.","properties":{"checkpoints":{"format":"int64","minimum":0,"type":"integer"},"day_ms":{"format":"int64","type":"integer"},"elapsed_ns":{"format":"int64","minimum":0,"type":"integer"},"restores":{"format":"int64","minimum":0,"type":"integer"},"saved_ns":{"format":"int64","minimum":0,"type":"integer"},"savings_pairs":{"format":"int64","minimum":0,"type":"integer"}},"required":["day_ms","saved_ns","savings_pairs","elapsed_ns","checkpoints","restores"],"type":"object"}}}}
```

## The ScaleRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ScaleRequest":{"properties":{"replicas":{"format":"int32","type":"integer"}},"required":["replicas"],"type":"object"}}}}
```

## The ScheduleWindow object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"}}}}
```

## The ScopedPolicy object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ScopedPolicy":{"allOf":[{"$ref":"#/components/schemas/Policy"},{"properties":{"name":{"description":"The team name or profile id.","type":"string"}},"required":["name"],"type":"object"}]},"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"}}}}
```

## The ScriptConfiguration object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"ScriptConfiguration":{"properties":{"base64_script":{"type":"string"}},"required":["base64_script"],"type":"object"}}}}
```

## The SetClusterGateway object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SetClusterGateway":{"properties":{"gateway_url":{"description":"http(s) origin; null or empty clears it.","type":["string","null"]}},"type":"object"}}}}
```

## The SetTeam object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SetTeam":{"properties":{"team":{"description":"Null removes the profile from its team.","type":["string","null"]}},"type":"object"}}}}
```

## The SloConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SloConfig":{"properties":{"default":{"$ref":"#/components/schemas/SloThresholds","description":"The org default; code defaults until one is saved."},"overrides":{"items":{"$ref":"#/components/schemas/SloOverride"},"type":"array"}},"required":["default","overrides"],"type":"object"},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"},"SloOverride":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"type":"string"}},"required":["profile_id"],"type":"object"}]}}}}
```

## The SloConfigUpsert object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SloConfigUpsert":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"description":"A profile id, or \"*\" for the org default.","type":"string"}},"required":["profile_id"],"type":"object"}]},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"}}}}
```

## The SloOverride object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SloOverride":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"type":"string"}},"required":["profile_id"],"type":"object"}]},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"}}}}
```

## The SloThresholds object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"}}}}
```

## The SlurmAvailableFilters object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmAvailableFilters":{"description":"Distinct filter values across all jobs (not just the current page)","properties":{"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses"],"type":"object"}}}}
```

## The SlurmCheckpoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpoint":{"description":"Checkpoint is basic unit for cedana service operation\nit stores all the information regarding the snapshot we can use to save and then restore state","properties":{"checksum":{"type":["string","null"]},"gpu":{"type":"string"},"id":{"format":"uuid","type":"string"},"info":{},"name":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/SlurmCheckpointStatus"}},"required":["id","status","gpu"],"type":"object"},"SlurmCheckpointStatus":{"enum":["initializing","updated_info","possibly_uploaded","ready","deprecated"],"type":"string"}}}}
```

## The SlurmCheckpointInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpointInfo":{"properties":{"gpu":{"type":"string"},"info":{},"platform":{"type":"string"}},"required":["gpu","platform"],"type":"object"}}}}
```

## The SlurmCheckpointKind object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpointKind":{"enum":["simple","rootfs","rootfsonly"],"type":"string"}}}}
```

## The SlurmCheckpointReason object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpointReason":{"enum":["heartbeat","manual","maintenance","preemption"],"type":"string"}}}}
```

## The SlurmCheckpointStatus object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpointStatus":{"enum":["initializing","updated_info","possibly_uploaded","ready","deprecated"],"type":"string"}}}}
```

## The SlurmCheckpointSuccessInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCheckpointSuccessInfo":{"properties":{"restore_path":{"type":["string","null"]}},"type":"object"}}}}
```

## The SlurmCluster object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmCluster":{"properties":{"id":{"format":"uuid","type":"string"},"metadata":{},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"type":"object"}}}}
```

## The SlurmClusterOverview object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmClusterOverview":{"properties":{"cpu_load":{"format":"double","type":["number","null"]},"cpus_idle":{"format":"double","type":["number","null"]},"cpus_total":{"format":"double","type":["number","null"]},"mem_alloc":{"format":"double","type":["number","null"]},"mem_free":{"format":"double","type":["number","null"]},"mem_real":{"format":"double","type":["number","null"]},"timestamp":{"format":"int64","type":"integer"}},"required":["timestamp"],"type":"object"}}}}
```

## The SlurmClusterSync object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmClusterSync":{"description":"SlurmClusterSync is the format sent by cedana-slurm when syncing clusters","properties":{"id":{"type":"string"},"metadata":{},"name":{"type":"string"},"status":{"type":"string"}},"required":["name"],"type":"object"}}}}
```

## The SlurmClusterSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmClusterSyncRequest":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"clusters":{"items":{"$ref":"#/components/schemas/SlurmClusterSync"},"type":"array"}},"required":["cluster_id","clusters"],"type":"object"},"SlurmClusterSync":{"description":"SlurmClusterSync is the format sent by cedana-slurm when syncing clusters","properties":{"id":{"type":"string"},"metadata":{},"name":{"type":"string"},"status":{"type":"string"}},"required":["name"],"type":"object"}}}}
```

## The SlurmEvent object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmEvent":{"properties":{"derived_ec":{"format":"int64","type":["integer","null"]},"exit_code":{"format":"int32","type":["integer","null"]},"failed_node":{"description":"Node that triggered the failure, if any.","type":["string","null"]},"job_id":{"format":"int64","type":"integer"},"kill_requid":{"format":"int64","type":["integer","null"]},"partition":{"type":["string","null"]},"reason":{"description":"Human-readable exit reason from slurmdbd (derived_es).","type":["string","null"]},"status":{"type":"string"},"time_suspended":{"description":"Seconds the job spent suspended (preemption-with-checkpoint signal).","format":"int64","type":["integer","null"]},"timestamp":{"description":"Epoch seconds; falls back to start_time, then submit_time, then 0.","format":"int64","type":"integer"}},"required":["job_id","status","timestamp"],"type":"object"}}}}
```

## The SlurmJob object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmJob":{"description":"SlurmJob represents a SLURM job stored in the database","properties":{"account":{"type":["string","null"]},"cluster_id":{"type":"string"},"derived_ec":{"description":"Numeric derived exit code (slurmdbd derived_ec — uint32, widened to i64)","format":"int64","type":["integer","null"]},"derived_es":{"description":"Human-readable exit reason (e.g. \"Preempted by higher-priority job\")","type":["string","null"]},"end_time":{"description":"Unix epoch seconds; 0 means not yet ended","format":"int64","type":["integer","null"]},"exit_code":{"format":"int64","type":["integer","null"]},"failed_node":{"description":"Node that triggered job failure, if any","type":["string","null"]},"id":{"format":"int64","type":"integer"},"job_id":{"format":"int64","type":"integer"},"kill_requid":{"description":"UID that issued the kill/preempt signal (uid_t / uint32, widened to i64)","format":"int64","type":["integer","null"]},"name":{"type":"string"},"nodes":{"type":"string"},"num_cpus":{"format":"int64","type":["integer","null"]},"num_nodes":{"format":"int64","type":["integer","null"]},"partition":{"type":["string","null"]},"priority":{"format":"int64","type":"integer"},"start_time":{"description":"Unix epoch seconds; 0 means not set","format":"int64","type":"integer"},"state_reason_prev":{"description":"Reason code for prior state transition","format":"int64","type":["integer","null"]},"status":{"type":"string"},"submit_time":{"description":"Unix epoch seconds; 0 means not set","format":"int64","type":"integer"},"time_suspended":{"description":"Seconds the job spent suspended","format":"int64","type":["integer","null"]},"work_dir":{"type":["string","null"]}},"type":"object"}}}}
```

## The SlurmJobSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmJobSyncRequest":{"description":"Sync request containing a batch of jobs","properties":{"cluster_id":{"format":"uuid","type":"string"},"jobs":{"description":"Raw SLURM records are retained because their schema varies by release.","items":{},"type":"array"},"partial":{"description":"The batch is only some of the cluster's jobs: upsert them, but don't\nmark the jobs missing from it as completed.","type":"boolean"}},"required":["cluster_id","jobs"],"type":"object"}}}}
```

## The SlurmJobsFilterConfig object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmJobsFilterConfig":{"description":"Filter config for targeting explicit SLURM jobs by their numeric `slurm_job_id`\n(the value the UI's `SlurmJob` exposes). These are resolved to `slurm_jobs.id` UUIDs\nat policy-creation time and stored in `policy.resource_id`.","properties":{"cluster_id":{"type":"string"},"job_ids":{"items":{"type":"string"},"type":"array"}},"required":["cluster_id"],"type":"object"}}}}
```

## The SlurmMaintenanceWindow object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmMaintenanceWindow":{"properties":{"cluster_id":{"description":"Cluster the window was synced from; None for manually created windows","type":["string","null"]},"created_at":{"format":"date-time","type":["string","null"]},"end_time":{"format":"date-time","type":["string","null"]},"id":{"type":["string","null"]},"name":{"description":"Reservation name; set for windows synced from the cluster","type":["string","null"]},"nodes":{"items":{"type":"string"},"type":["array","null"]},"partitions":{"items":{"type":"string"},"type":["array","null"]},"reason":{"type":["string","null"]},"start_time":{"format":"date-time","type":["string","null"]},"status":{"type":["string","null"]}},"type":"object"}}}}
```

## The SlurmMaintenanceWindowSync object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmMaintenanceWindowSync":{"description":"A SLURM maintenance reservation as reported by the cedana-slurm plugin","properties":{"end_time":{"format":"date-time","type":"string"},"flags":{"items":{"type":"string"},"type":["array","null"]},"metadata":{},"name":{"description":"Reservation name, unique within the cluster","type":"string"},"nodes":{"items":{"type":"string"},"type":["array","null"]},"partitions":{"items":{"type":"string"},"type":["array","null"]},"reason":{"type":["string","null"]},"start_time":{"format":"date-time","type":"string"},"status":{"description":"One of scheduled, active, completed, cancelled (defaults to scheduled)","type":["string","null"]}},"required":["name","start_time","end_time"],"type":"object"}}}}
```

## The SlurmMaintenanceWindowSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmMaintenanceWindowSyncRequest":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"maintenance_windows":{"items":{"$ref":"#/components/schemas/SlurmMaintenanceWindowSync"},"type":"array"}},"required":["cluster_id","maintenance_windows"],"type":"object"},"SlurmMaintenanceWindowSync":{"description":"A SLURM maintenance reservation as reported by the cedana-slurm plugin","properties":{"end_time":{"format":"date-time","type":"string"},"flags":{"items":{"type":"string"},"type":["array","null"]},"metadata":{},"name":{"description":"Reservation name, unique within the cluster","type":"string"},"nodes":{"items":{"type":"string"},"type":["array","null"]},"partitions":{"items":{"type":"string"},"type":["array","null"]},"reason":{"type":["string","null"]},"start_time":{"format":"date-time","type":"string"},"status":{"description":"One of scheduled, active, completed, cancelled (defaults to scheduled)","type":["string","null"]}},"required":["name","start_time","end_time"],"type":"object"}}}}
```

## The SlurmMetric object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmMetric":{"properties":{"counter_value":{"format":"double","type":["number","null"]},"gauge_value":{"format":"double","type":["number","null"]},"id":{"format":"int64","minimum":0,"type":"integer"},"kind":{"type":["string","null"]},"name":{"type":"string"},"tags":{},"timestamp":{"format":"int64","type":"integer"}},"required":["id","name","timestamp"],"type":"object"}}}}
```

## The SlurmNode object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmNode":{"properties":{"cpus":{"format":"int32","type":["integer","null"]},"id":{"format":"uuid","type":"string"},"memory":{"format":"int64","type":["integer","null"]},"name":{"type":["string","null"]},"status":{"type":["string","null"]}},"type":"object"}}}}
```

## The SlurmNodeSync object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmNodeSync":{"description":"SlurmNodeSync is the format sent by cedana-slurm when syncing nodes","properties":{"cpus":{"format":"int32","type":"integer"},"id":{"type":"string"},"memory":{"format":"int64","type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["name"],"type":"object"}}}}
```

## The SlurmNodeSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmNodeSyncRequest":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"nodes":{"items":{"$ref":"#/components/schemas/SlurmNodeSync"},"type":"array"}},"required":["cluster_id","nodes"],"type":"object"},"SlurmNodeSync":{"description":"SlurmNodeSync is the format sent by cedana-slurm when syncing nodes","properties":{"cpus":{"format":"int32","type":"integer"},"id":{"type":"string"},"memory":{"format":"int64","type":"integer"},"name":{"type":"string"},"status":{"type":"string"}},"required":["name"],"type":"object"}}}}
```

## The SlurmPartition object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmPartition":{"properties":{"default_time":{"format":"int64","type":"integer"},"id":{"format":"uuid","type":"string"},"is_default":{"type":"boolean"},"max_time":{"format":"int64","type":"integer"},"name":{"type":"string"},"nodes":{"type":"string"},"priority_tier":{"format":"int32","type":"integer"},"state":{"type":"string"},"total_cpus":{"format":"int32","type":"integer"},"total_nodes":{"format":"int32","type":"integer"}},"required":["id","name","state","total_nodes","total_cpus","nodes","max_time","default_time","priority_tier","is_default"],"type":"object"}}}}
```

## The SlurmPartitionSync object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmPartitionSync":{"properties":{"default_time":{"format":"int64","type":"integer"},"is_default":{"type":"boolean"},"max_time":{"format":"int64","type":"integer"},"name":{"type":"string"},"nodes":{"type":"string"},"priority_tier":{"format":"int32","type":"integer"},"state":{"type":"string"},"total_cpus":{"format":"int32","type":"integer"},"total_nodes":{"format":"int32","type":"integer"}},"required":["name"],"type":"object"}}}}
```

## The SlurmPartitionSyncRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmPartitionSyncRequest":{"properties":{"cluster_id":{"format":"uuid","type":"string"},"partitions":{"items":{"$ref":"#/components/schemas/SlurmPartitionSync"},"type":"array"}},"required":["cluster_id","partitions"],"type":"object"},"SlurmPartitionSync":{"properties":{"default_time":{"format":"int64","type":"integer"},"is_default":{"type":"boolean"},"max_time":{"format":"int64","type":"integer"},"name":{"type":"string"},"nodes":{"type":"string"},"priority_tier":{"format":"int32","type":"integer"},"state":{"type":"string"},"total_cpus":{"format":"int32","type":"integer"},"total_nodes":{"format":"int32","type":"integer"}},"required":["name"],"type":"object"}}}}
```

## The SlurmRestoreReason object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmRestoreReason":{"enum":["nodeTermination","nodeUnschedulable","manual"],"type":"string"}}}}
```

## The SlurmStateBreakdown object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SlurmStateBreakdown":{"properties":{"cpus_by_state":{"items":{"$ref":"#/components/schemas/StateItem"},"type":"array"},"nodes_by_state":{"items":{"$ref":"#/components/schemas/StateItem"},"type":"array"},"timestamp":{"format":"int64","type":"integer"}},"required":["timestamp","cpus_by_state","nodes_by_state"],"type":"object"},"StateItem":{"properties":{"state":{"type":"string"},"value":{"format":"double","type":"number"}},"required":["state","value"],"type":"object"}}}}
```

## The Source object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Source":{"enum":["profile","team","org","default"],"type":"string"}}}}
```

## The Sources object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"}}}}
```

## The StageSummary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StageSummary":{"properties":{"count":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"p95_ns":{"format":"double","type":"number"},"stage":{"type":"string"},"total_ns":{"format":"int64","minimum":0,"type":"integer"}},"required":["operation","stage","count","p50_ns","p95_ns","total_ns"],"type":"object"}}}}
```

## The StartLatency object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StartLatency":{"properties":{"max_ms":{"format":"int64","type":"integer"},"median_ms":{"format":"int64","type":"integer"},"min_ms":{"format":"int64","type":"integer"},"samples":{"minimum":0,"type":"integer"}},"required":["samples","min_ms","median_ms","max_ms"],"type":"object"}}}}
```

## The StateItem object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StateItem":{"properties":{"state":{"type":"string"},"value":{"format":"double","type":"number"}},"required":["state","value"],"type":"object"}}}}
```

## The Status object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"Status":{"enum":[0,1,2,3],"type":"integer"}}}}
```

## The StatusResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StatusResponse":{"properties":{"details":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/CheckpointOperationStatus"}},"required":["status"],"type":"object"},"CheckpointOperationStatus":{"enum":["initialized","processing","checkpoint_created","ready","error","not_found"],"type":"string"}}}}
```

## The StatusesResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StatusesResponse":{"properties":{"statuses":{"items":{"type":"string"},"type":"array"}},"required":["statuses"],"type":"object"}}}}
```

## The StorageInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"StorageInfo":{"description":"Local storage of one node.","properties":{"allocatable_ephemeral_storage_bytes":{"description":"Ephemeral storage the scheduler can hand out, after system reservations","format":"int64","type":["integer","null"]},"csi_drivers":{"description":"CSI drivers serving the node, from their topology labels, e.g. [\"csi.weka.io\"]","items":{"type":"string"},"type":"array"},"ephemeral_storage_bytes":{"format":"int64","type":["integer","null"]},"local_ssd":{"description":"Whether the node has a non-rotational (SSD/NVMe) disk (Node Feature Discovery)","type":["boolean","null"]}},"required":["csi_drivers"],"type":"object"}}}}
```

## The SystemInfo object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"SystemInfo":{"description":"Memory and software of one node.","properties":{"allocatable_memory_bytes":{"description":"Memory the scheduler can hand out, after system reservations","format":"int64","type":["integer","null"]},"container_runtime":{"description":"e.g. \"containerd://2.3.3\"","type":["string","null"]},"hugepages_bytes":{"description":"Huge pages reserved on the node, all page sizes together; absent when none are","format":"int64","type":["integer","null"]},"kernel_version":{"type":["string","null"]},"kubelet_version":{"type":["string","null"]},"max_pods":{"format":"int64","type":["integer","null"]},"memory_bytes":{"format":"int64","type":["integer","null"]},"numa":{"description":"Whether memory spans several NUMA nodes (Node Feature Discovery)","type":["boolean","null"]},"os_image":{"description":"e.g. \"Ubuntu 24.04.4 LTS\"","type":["string","null"]},"zone":{"type":["string","null"]}},"type":"object"}}}}
```

## The TelemetryBody object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TelemetryBody":{"description":"One record or a batch; Switchyard batches, older gateways send one per request.","oneOf":[{"items":{"$ref":"#/components/schemas/TelemetryRecord"},"type":"array"},{"$ref":"#/components/schemas/TelemetryRecord"}]},"TelemetryRecord":{"properties":{"activation_path":{"type":["string","null"]},"classifier_latency_ms":{"format":"int64","type":["integer","null"]},"classifier_profile_id":{"type":["string","null"]},"completion_tokens":{"format":"int64","type":["integer","null"]},"decision_source":{"type":["string","null"]},"end_to_end_latency_ms":{"format":"int64","type":["integer","null"]},"fallback_used":{"type":["boolean","null"]},"key_id":{"description":"The API key the request was authorized with, from the authorize response.","type":["string","null"]},"logical_model":{"type":"string"},"mean_inter_token_ms":{"format":"double","type":["number","null"]},"p95_inter_token_ms":{"format":"double","type":["number","null"]},"profile_id":{"type":["string","null"]},"prompt_tokens":{"format":"int64","type":["integer","null"]},"queue_ms":{"format":"int64","type":["integer","null"]},"request_id":{"type":"string"},"route_generation":{"format":"int64","type":["integer","null"]},"status_code":{"format":"int32","type":["integer","null"]},"stream_duration_ms":{"format":"int64","type":["integer","null"]},"ttft_ms":{"format":"int64","type":["integer","null"]},"upstream_attempts":{"format":"int32","type":["integer","null"]}},"required":["request_id","logical_model"],"type":"object"}}}}
```

## The TelemetryRecord object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TelemetryRecord":{"properties":{"activation_path":{"type":["string","null"]},"classifier_latency_ms":{"format":"int64","type":["integer","null"]},"classifier_profile_id":{"type":["string","null"]},"completion_tokens":{"format":"int64","type":["integer","null"]},"decision_source":{"type":["string","null"]},"end_to_end_latency_ms":{"format":"int64","type":["integer","null"]},"fallback_used":{"type":["boolean","null"]},"key_id":{"description":"The API key the request was authorized with, from the authorize response.","type":["string","null"]},"logical_model":{"type":"string"},"mean_inter_token_ms":{"format":"double","type":["number","null"]},"p95_inter_token_ms":{"format":"double","type":["number","null"]},"profile_id":{"type":["string","null"]},"prompt_tokens":{"format":"int64","type":["integer","null"]},"queue_ms":{"format":"int64","type":["integer","null"]},"request_id":{"type":"string"},"route_generation":{"format":"int64","type":["integer","null"]},"status_code":{"format":"int32","type":["integer","null"]},"stream_duration_ms":{"format":"int64","type":["integer","null"]},"ttft_ms":{"format":"int64","type":["integer","null"]},"upstream_attempts":{"format":"int32","type":["integer","null"]}},"required":["request_id","logical_model"],"type":"object"}}}}
```

## The TierSummary object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TierSummary":{"properties":{"attempts":{"format":"int64","minimum":0,"type":"integer"},"bytes_total":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"p50_ns":{"format":"double","type":"number"},"storage_tier":{"type":"string"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["operation","storage_tier","attempts","succeeded","p50_ns","bytes_total"],"type":"object"}}}}
```

## The TimeSeriesDataPoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TimeSeriesDataPoint":{"properties":{"timestamp":{"format":"int64","type":"integer"},"value":{"format":"double","type":"number"}},"required":["timestamp","value"],"type":"object"}}}}
```

## The TimelinePoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TimelinePoint":{"properties":{"bucket_ms":{"format":"int64","type":"integer"},"failed":{"format":"int64","minimum":0,"type":"integer"},"fallbacks":{"format":"int64","minimum":0,"type":"integer"},"operation":{"type":"string"},"succeeded":{"format":"int64","minimum":0,"type":"integer"}},"required":["bucket_ms","operation","succeeded","failed","fallbacks"],"type":"object"}}}}
```

## The TopPod object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TopPod":{"description":"Top pods by resource usage","properties":{"cpu_usage_seconds":{"format":"double","type":"number"},"memory_bytes":{"format":"double","type":"number"},"namespace":{"type":["string","null"]},"node_name":{"type":"string"},"pod_name":{"type":["string","null"]},"pod_uid":{"type":"string"}},"required":["pod_uid","node_name","cpu_usage_seconds","memory_bytes"],"type":"object"}}}}
```

## The TotalCountResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"TotalCountResponse":{"properties":{"total_count":{"format":"int64","type":"integer"}},"required":["total_count"],"type":"object"}}}}
```

## The UpdateMaintenanceWindow object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"UpdateMaintenanceWindow":{"properties":{"end_time":{"format":"date-time","type":["string","null"]},"nodes":{"items":{"type":"string"},"type":["array","null"]},"partitions":{"items":{"type":"string"},"type":["array","null"]},"reason":{"type":["string","null"]},"start_time":{"format":"date-time","type":["string","null"]},"status":{"type":["string","null"]}},"type":"object"}}}}
```

## The UpdateWebhook object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"UpdateWebhook":{"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object"}}}}
```

## The UploadUrlsResponse object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"UploadUrlsResponse":{"properties":{"latest_upload_url":{"type":"string"},"version_upload_url":{"type":"string"}},"required":["version_upload_url","latest_upload_url"],"type":"object"}}}}
```

## The UpsertInstanceTypePricingRequest object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"UpsertInstanceTypePricingRequest":{"description":"Request to create or update instance type pricing","properties":{"capacity_type":{"description":"\"spot\" or \"on-demand\"","type":"string"},"instance_type":{"type":"string"},"ondemand_price_per_hour":{"description":"Hourly cost when running as on-demand","format":"double","type":["number","null"]},"spot_price_per_hour":{"description":"Hourly cost when running as spot","format":"double","type":["number","null"]}},"required":["instance_type","capacity_type"],"type":"object"}}}}
```

## The UsagePoint object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"UsagePoint":{"description":"One model's traffic in one time bucket.","properties":{"bucket_start":{"format":"date-time","type":"string"},"completion_tokens":{"format":"int64","type":"integer"},"errors":{"format":"int64","type":"integer"},"logical_model":{"type":"string"},"prompt_tokens":{"format":"int64","type":"integer"},"requests":{"format":"int64","type":"integer"},"ttft_p50_ms":{"format":"double","type":["number","null"]}},"required":["bucket_start","logical_model","requests","errors","prompt_tokens","completion_tokens"],"type":"object"}}}}
```

## The VolumeMapping object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"VolumeMapping":{"properties":{"container_path":{"type":"string"},"host_path":{"type":"string"}},"required":["host_path","container_path"],"type":"object"}}}}
```

## The VolumeMount object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"VolumeMount":{"properties":{"auto":{"type":["boolean","null"]}},"type":"object"}}}}
```

## The WorkerStart object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"WorkerStart":{"properties":{"checkpoint_path":{"type":["string","null"]},"pod_name":{"type":"string"},"ready_at":{"format":"date-time","type":["string","null"]},"restored":{"description":"True when a restore is bound to this worker pod.","type":"boolean"},"start_time_ms":{"description":"PodScheduled to Ready, in milliseconds.","format":"int64","type":"integer"}},"required":["pod_name","start_time_ms","restored"],"type":"object"}}}}
```

## The WorkloadReq object

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"components":{"schemas":{"WorkloadReq":{"properties":{"cluster_id":{"type":"string"},"cluster_name":{"deprecated":true,"type":["string","null"]},"deployment":{},"job":{},"pod":{}},"required":["cluster_id"],"type":"object"}}}}
```
