Cloud World Model · Schema
Resource
CompanyCloud SimulationMulti-CloudCloud CostInfrastructureAI AgentsMCPChaos EngineeringReinforcement Learning
Properties
| Name | Type | Description |
|---|---|---|
| nodeCount | integer | Creation compatibility alias for Kubernetes worker count. characteristics.nodeCount wins over this alias; characteristics.nodePools supersedes aggregate counts. Counts are floored to the applicable wo |
| nodes | integer | Kubernetes nodeCount compatibility alias. |
| desiredNodes | integer | Kubernetes nodeCount compatibility alias. |
| nodePoolSize | integer | Kubernetes nodeCount compatibility alias. |
| workerNodes | integer | Kubernetes nodeCount compatibility alias. |
| minNodes | integer | Kubernetes characteristics.minNodes compatibility alias. |
| minNodeCount | integer | Kubernetes minNodes compatibility alias. |
| maxNodes | integer | Kubernetes characteristics.maxNodes compatibility alias. |
| maxNodeCount | integer | Kubernetes maxNodes compatibility alias. |
| metadata | object | Resource metadata; configured Route 53 nodes persist modeled lifecycle telemetry under route53Failover. |
| id | string | Unique resource identifier |
| dataState | string | Data durability, separate from service health; permanently_lost is irreversible. |
| recoverySource | string | |
| recoverySourceResourceId | string | |
| databaseRebuilt | boolean | Explicitly rebuilt empty database; does not restore original lost data. |
| type | string | Resource type. `kubernetes` models a managed container node pool (EKS / GKE / AKS / OKE / DOKS): its `characteristics.nodeCount` worker nodes autoscale between `characteristics.minNodes` and `characte |
| name | string | Human-readable resource name |
| provider | string | Cloud provider |
| status | string | Current resource status |
| location | object | Resource location for create and read. Owned typical requires regionKey us-east-2 on all four nodes; the server stores canonical use2. Do not set region under characteristics. |
| characteristics | object | Provider-specific resource characteristics. For AWS RDS resources, lifecycle/support and version inputs such as `extendedSupport`, `engineVersion`, `databaseEngine`, `databaseEngineVersion`, and `dbEn |
| routedRps | number | Compute and Kubernetes only — effective requests per second routed to this resource during the most recent simulation step. Only present on compute and kubernetes resources in step responses (`POST /s |
| availabilityState | string | Compute, Kubernetes, and Database only — explicit availability classification set by the step pipeline after traffic redistribution is finalised. Absent on resource types where availability is not tra |
| isRoutable | boolean | Compute, Kubernetes, and Database only — whether this resource is receiving routed traffic during the current simulation step. `true` for resources with `availabilityState` of `"available"` or `"degra |
| recoveryBlockedReason | string | When the recovery cooldown is not advancing because an engine guard blocked the demotion step, this field names the active guard. Absent when no guard is active and the resource is progressing normall |
| failureParkStepsRemaining | integer | Compute and Kubernetes only — number of simulation steps remaining in the forced unavailability window after an `inject-failure` call. Present only on step responses (`POST /simulations/{id}/step`); a |
| recoveryProgress | object | |
| recoveryPolicy | object | Per-resource recovery thresholds that control how quickly the simulation transitions a resource from critical → warning → healthy. The four cooldown fields default to the global values (criticalCpuThr |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-resource-schema.json",
"title": "Resource",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cloudworldmodel-ai-openapi.yml#/components/schemas/Resource",
"type": "object",
"required": [
"id",
"type",
"name",
"provider",
"status"
],
"properties": {
"nodeCount": {
"type": "integer",
"minimum": 0,
"description": "Creation compatibility alias for Kubernetes worker count. characteristics.nodeCount wins over this alias; characteristics.nodePools supersedes aggregate counts. Counts are floored to the applicable worker minimum. Other supported aliases are nodes, desiredNodes, nodePoolSize, workerNodes, in that precedence order; each canonical spelling takes precedence over later aliases and nested values win at the same spelling."
},
"nodes": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes nodeCount compatibility alias."
},
"desiredNodes": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes nodeCount compatibility alias."
},
"nodePoolSize": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes nodeCount compatibility alias."
},
"workerNodes": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes nodeCount compatibility alias."
},
"minNodes": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes characteristics.minNodes compatibility alias."
},
"minNodeCount": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes minNodes compatibility alias."
},
"maxNodes": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes characteristics.maxNodes compatibility alias."
},
"maxNodeCount": {
"type": "integer",
"minimum": 0,
"description": "Kubernetes maxNodes compatibility alias."
},
"metadata": {
"type": "object",
"additionalProperties": true,
"description": "Resource metadata; configured Route 53 nodes persist modeled lifecycle telemetry under route53Failover.",
"properties": {
"route53Failover": {
"$ref": "#/$defs/Route53FailoverTelemetry"
}
}
},
"id": {
"type": "string",
"description": "Unique resource identifier"
},
"dataState": {
"type": "string",
"enum": [
"intact",
"temporarily_unavailable",
"permanently_lost"
],
"description": "Data durability, separate from service health; permanently_lost is irreversible."
},
"recoverySource": {
"type": "string",
"enum": [
"none",
"surviving_backup",
"surviving_replica"
]
},
"recoverySourceResourceId": {
"type": "string"
},
"databaseRebuilt": {
"type": "boolean",
"description": "Explicitly rebuilt empty database; does not restore original lost data."
},
"type": {
"type": "string",
"enum": [
"compute",
"network",
"database",
"storage",
"kubernetes",
"cache",
"queue"
],
"description": "Resource type. `kubernetes` models a managed container node pool (EKS / GKE / AKS / OKE / DOKS): its `characteristics.nodeCount` worker nodes autoscale between `characteristics.minNodes` and `characteristics.maxNodes`, growing both serving capacity (`maxThroughput`) and hourly cost proportionally. A recognized GKE worker SKU resolves its catalog hourly rate and per-node throughput for direct API creates; declared `nodeCount` and `nodePools[].nodeCount` values are total counts, not per-zone counts. Recognized DigitalOcean CPU worker sizes resolve Droplet catalog monthly prices divided by 730 for each pool. Standard DOKS control planes are free; characteristics.doksHighAvailability=true adds $40/730 once per cluster unless includesControlPlane=true. Explicit perNodeRate overrides remain caller assumptions. Unknown CPU SKUs use an identified estimate and cannot pass catalog benchmark validation. These are normalized monthly equivalents, not exact short-lived invoice quotes.\n"
},
"name": {
"type": "string",
"description": "Human-readable resource name"
},
"provider": {
"type": "string",
"enum": [
"aws",
"gcp",
"azure",
"oci",
"digitalocean"
],
"description": "Cloud provider"
},
"status": {
"type": "string",
"enum": [
"healthy",
"warning",
"critical",
"offline"
],
"description": "Current resource status",
"default": "healthy"
},
"location": {
"type": "object",
"description": "Resource location for create and read. Owned typical requires regionKey us-east-2 on all four nodes; the server stores canonical use2. Do not set region under characteristics.",
"required": [
"regionKey"
],
"properties": {
"regionKey": {
"type": "string"
},
"zoneKey": {
"type": "string"
},
"localityType": {
"type": "string",
"enum": [
"az",
"zone",
"availability_domain",
"fault_domain"
]
},
"providerLabel": {
"type": "string"
},
"faultDomainKey": {
"type": "string"
}
}
},
"characteristics": {
"type": "object",
"description": "Provider-specific resource characteristics. For AWS RDS resources, lifecycle/support and version inputs such as `extendedSupport`, `engineVersion`, `databaseEngine`, `databaseEngineVersion`, and `dbEngineVersion` are rejected with `INVALID_FIELD`: CWM models base resource rates and behavior but does not price RDS lifecycle/support surcharges. Ordinary AWS RDS accepts `characteristics.engine` as MySQL/PostgreSQL pricing identity (including postgres/postgresql aliases); engine, deployment and class select independent price evidence. This does not declare engine version, Extended Support, or lifecycle billing. Use `workloadDatabaseEngine: \"mysql\"` for the canonical owned CRUD workload identity. The bounded SQL Server Express contract instead uses `rdsSqlServerBilling.engine: \"sqlserver-ex\"` inside its nested, strict configuration. Arbitrary data remains supported under resource-level `metadata`. For Aurora Serverless, set ACU limits with `config.minCapacity` and `config.maxCapacity` (or flat `minCapacity` and `maxCapacity`). For AWS aurora-serverless databases with size `db.serverless`, flat `minAcu` and `maxAcu` are aliases when the corresponding canonical field is absent. Top-level and nested config aliases are rejected. A modeled two-instance pair cannot change its topology or ACU bounds through PATCH.\nOwned AWS CRUD calibration eligibility is an exact predicate: exactly four healthy, routable AWS resources and exactly four edges, one internal ALB → each of two compute apps → one database, with no extra resources or edges. Both apps are `m5.large`; each absent `serviceFamily` is inferred as `ec2` for fit eligibility only, explicit `ec2` is accepted, and any other explicit family fails. The database is `db.r5.large`; absent `serviceFamily` is inferred as `rds` for eligibility only, explicit `rds` is accepted, and any conflicting explicit family fails. MySQL workload identity is required on that database: use `workloadDatabaseEngine: \"mysql\"` or the narrow literal `engine: \"mysql\"` alias described above. The alias is accepted on that database shape even in an incomplete graph but does not by itself make the graph fit-eligible. The sole network node must have explicit `serviceFamily: \"alb\"`, or, only when serviceFamily is absent, an unambiguous name containing `ALB` or `Application Load Balancer`; any explicit size/type discriminator must not identify NLB or another network service. A generic unnamed network/load-balancer node, explicit NLB, or contradictory discriminator is ambiguous and fails eligibility.\nEach app may explicitly set `workload: \"crud\"` or omit the flag only for this completely matched canonical graph with MySQL identity; this is a canonical CRUD modeling assumption, not proof of actual customer workload behavior, and the inference is identified in `calibrationEvidence.note`. Explicit conflicting workload values fail. No CRUD inference applies to similar-but-not-exact graphs, another instance type/provider, or an incomplete graph. Each app must have autoscaling disabled and fixed `minInstances=maxInstances=2`; traffic must be in the inclusive 10–1,000 RPS range. There must be no active failure and no failure, warmup, or snapshot metadata. App `capacityRps`, `requestsPerSecond`, non-default `maxThroughput`, and non-default `baseLatency` overrides disqualify the fit. If supplied, database `maxConnections` must be 500 and `effectiveMaxConnections` must be absent; if supplied, ALB `maxThroughput` must be 50,000. The canonical `us-east-2` / seed `20240601` pair is the parity fixture, not evidence that another region has been measured.\nThe separate owned typical fit requires appWeight=typical and the same four-node topology, explicit workload=\"crud-typical\", appRuntime=\"node\", appWorkerCount=2 and appDbPoolSize=250 per compute node, workloadDatabaseVersion=\"8.0\" and explicit maxConnections=500 on the MySQL database, and internal loadBalancerScheme on the ALB. Every node must declare location.regionKey=\"us-east-2\" (stored as canonical \"use2\"), bounds must be fixed 2→2, and load must be 20–300 RPS. Missing identity is never inferred. Only measured 20/100/200 RPS rungs from campaign typical-v1-20260927c are fitted; 300 RPS is a holdout and 500 RPS is saturation context. Generic typical apps and the public lean benchmark do not receive this fit.\nFor ineligible graphs, `calibrationEvidence.kind` is `modeled` and `calibrationEvidence.note` names every actual failed eligibility check in stable order, with resource identifiers and safe expected / actual values; it must not report only a generic “not applied”. Examples include missing or ambiguous ALB identity, wrong app size or family, non-fixed instance bounds, traffic outside the range, active failure, and conflicting workload identity. For eligible graphs, evidence identifies the owned calibration and states that latency is modeled on the in-VPC ALB path, not end-to-end. No other hardware has been validated. Lean owned evidence requires root appWeight=lean; the separate typical fit requires typical. Known-vCPU serving compute uses the workload model: proportional lean AWS M5 scaling is scaled from measured. At offered application RPS T its full-precision fitted baseline is P50 = max(1.45, 2.4833 - 0.0010466*T) ms and P95 = max(P50, 3.10, 4.3697 - 0.0012973*T) ms. Topology, congestion, storage, memory, routing and failure penalties follow this baseline. There is no generic 5 ms floor on lean scaled latency; 0.05 ms is only a physical/non-finite safety floor. Other providers and generic typical/heavy are reference estimates. An explicitly identified owned typical Node CRUD setup uses its own separate three-rung fit; it does not change the lean benchmark. Unknown-vCPU fallback retains explicitly unverified generic output with no external reference. See PredictionEvidence for assumption intervals.\n",
"properties": {
"route53Failover": {
"$ref": "#/$defs/Route53FailoverConfig"
},
"doksHighAvailability": {
"type": "boolean",
"description": "DigitalOcean CPU Kubernetes only. Standard control plane is free when absent or false. True adds the sourced $40/month divided by 730 once per cluster unless includesControlPlane is true. Unresolved imported HA is not verified."
},
"databaseEngineIdentity": {
"type": "string",
"enum": [
"mysql",
"postgresql",
"aurora-mysql",
"sqlserver",
"other"
],
"description": "Explicit database identity for the default additive forecast; never inferred from display names and does not select billing/lifecycle behavior."
},
"cloudSql": {
"$ref": "#/$defs/CloudSqlConfiguration"
},
"spanner": {
"$ref": "#/$defs/SpannerConfiguration"
},
"mysqlPreparedStatementForecast": {
"$ref": "#/$defs/MySqlPreparedStatementForecastInput"
},
"workload": {
"type": "string",
"enum": [
"crud",
"crud-typical"
],
"description": "Explicit application workload identity. Set to \"crud-typical\" only for the owned typical Node CRUD setup (see the required fields below). For lean, set \"crud\" on each app; each may omit its flag only when the complete exact canonical graph and MySQL database identity match; this is a modeling assumption, not evidence of actual customer workload behavior. Explicit conflicting workload values fail. See the characteristics contract for the complete gate.\n"
},
"appRuntime": {
"type": "string",
"description": "Explicit runtime identity for owned typical eligibility; must be node. Not inferred from EC2."
},
"appWorkerCount": {
"type": "integer",
"minimum": 1,
"description": "Explicit workers per app host; owned typical requires two on each m5.large."
},
"appDbPoolSize": {
"type": "integer",
"minimum": 1,
"description": "Explicit database connection pool size per app host; owned typical requires 250 on each host."
},
"loadBalancerScheme": {
"type": "string",
"enum": [
"internal",
"internet-facing"
],
"description": "Explicit ALB scheme; owned typical requires internal."
},
"workloadDatabaseVersion": {
"type": "string",
"description": "Workload-only MySQL version identity; owned typical requires 8.0. Does not enable RDS lifecycle or support billing inputs."
},
"workloadDatabaseEngine": {
"type": "string",
"enum": [
"mysql"
],
"description": "Preferred MySQL workload identity for the exact healthy AWS db.r5.large node in the owned CRUD graph. Literal characteristics.engine=\"mysql\" also selects MySQL price identity and satisfies workload identity on this shape; it does not declare engine version, Extended Support, lifecycle, or billing. Those inputs remain rejected. See the characteristics contract for the complete gate.\n"
},
"engine": {
"type": "string",
"description": "Ordinary AWS RDS pricing engine identity: mysql, postgres or postgresql, with explicit engine facts ahead of friendly names. Engine and deployment select configuration-specific instance rates; unpriced combinations remain pricing gaps. Does not declare engine version, Extended Support or lifecycle billing. Direct resource-level engine is not supported.\n"
},
"rdsSqlServerBilling": {
"$ref": "#/$defs/RdsSqlServerBillingConfig"
},
"minCapacity": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Aurora Serverless minimum ACU (flat form; nested config takes precedence). Default 0.5. Explicit reader bounds must match the writer's cluster range; omitted reader bounds inherit it."
},
"maxCapacity": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Aurora Serverless maximum ACU (flat form; nested config takes precedence). Default 16. Explicit reader bounds must match the writer's cluster range; omitted reader bounds inherit it."
},
"minAcu": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Exact AWS Aurora Serverless v2 db.serverless shape only; alias for flat minCapacity."
},
"maxAcu": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Exact AWS Aurora Serverless v2 db.serverless shape only; alias for flat maxCapacity."
},
"auroraReaderScalingMode": {
"type": "string",
"enum": [
"writer-mirror",
"independent"
],
"description": "AWS Aurora Serverless v2 reader scaling: writer-mirror (default, promotion tiers 0/1) follows the writer's capacity; CPU is a modeled mirror, not independently routed load. independent (promotion tiers 2–15) uses only routed work and the ACU floor. Set on an explicit reader or on the two-instance writer to configure its generated reader. Each instance bills its own ACU-hours. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.how-it-works.html (reviewed 2026-09-25).\n"
},
"config": {
"type": "object",
"description": "Aurora Serverless ACU configuration. Use minCapacity/maxCapacity, not minAcu/maxAcu. The range is cluster-wide for all Serverless v2 instances; explicit reader bounds conflicting with the writer are rejected, while omitted reader bounds inherit the writer range. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2-examples-setting-capacity-range-for-cluster (reviewed 2026-09-25).\n",
"properties": {
"minCapacity": {
"type": "number",
"exclusiveMinimum": 0
},
"maxCapacity": {
"type": "number",
"exclusiveMinimum": 0
}
}
},
"serviceFamily": {
"type": "string",
"description": "Provider-specific service family identifier. AWS values include: `ec2`, `ecsFargate`, `rds`, `rds-sqlserver-express`, `aurora-postgresql`, `aurora-dsql`, `aurora-serverless`, `dynamodb`, `s3`, `elb`, `cloudfront`, `lambda`. GCP values include: `gce`, `cloud-sql`, `cloud-spanner`, `bigtable-ssd`, `bigtable-hdd`, `cloudRun`, `cloudFunctions`, `gcs`, `cloud-load-balancing`. Azure values include: `azure_vm`, `azure-sql`, `azureFunctions`, `azureContainerApps`, `blob-storage`, `azure-lb`, `eventhub`. OCI values include: `oci_vm`, `ociFunctions`, `autonomous-db`, `oci-container`, `oci-lb`, `oci-streaming`. DigitalOcean values include: `droplets`, `managed_postgresql`, `spaces`, `load_balancer`.\nOnly for owned AWS CRUD fit eligibility, absent serviceFamily is inferred as `ec2` for exact AWS compute `m5.large` apps and `rds` for exact AWS database `db.r5.large`; explicit matching values remain valid and conflicting values fail. The sole AWS network node accepts explicit `alb`, or, only when family is absent, a resource name unambiguously containing `ALB` or `Application Load Balancer` and no contradictory size/type discriminator. These inferences are eligibility-only and do not rewrite the caller's persisted input.\nIdle / residual-billing families (billed a flat rate regardless of traffic — see `characteristics.billingState`): AWS: `nat-gateway`, `vpc-endpoint`, `eip-detached`, `ebs-snapshot`, `alb-idle`. GCP: `cloud-nat`, `psc-endpoint`, `static-ip`, `pd-snapshot`, `clb-idle`. Azure: `azure-nat-gw`, `private-endpoint`, `azure-static-ip`, `disk-snapshot`, `azure-lb-idle`. OCI: `oci-reserved-ip`, `block-backup`, `oci-lb-idle`. DigitalOcean: `do-reserved-ip`, `do-vol-snapshot`, `do-lb-idle`. Snapshot/backup families bill per GB-month × `capacityGB` ÷ 730.\n"
},
"containerCpu": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Request-serving compute only — runtime CPU allocation in vCPUs. For ECS/Fargate this must be supplied together with `containerMemoryGiB` and match a supported task allocation. It is canonicalized to the same allocation represented by `size`.\n"
},
"containerMemoryGiB": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Request-serving compute only — runtime memory allocation in GiB. For ECS/Fargate this must be supplied together with `containerCpu` and match a supported task allocation.\n"
},
"vcpu": {
"type": "number",
"exclusiveMinimum": 0,
"description": "ECS/Fargate task vCPU allocation; equivalent to containerCpu when both are equal."
},
"memoryGiB": {
"type": "number",
"exclusiveMinimum": 0,
"description": "ECS/Fargate task memory allocation; equivalent to containerMemoryGiB when both are equal."
},
"cpuArchitecture": {
"type": "string",
"enum": [
"X86_64",
"ARM64"
],
"description": "ECS/Fargate Linux architecture; ARM64 uses the separate Graviton vCPU and memory rates."
},
"vmContainerWorkload": {
"description": "Explicit fixed-host batch workload. Set null in PATCH to remove it. Editing a profile starts a fresh workload evaluation; resize alone retains running/terminal job state.",
"oneOf": [
{
"$ref": "#/$defs/VmContainerWorkload"
},
{
"type": "null"
}
]
},
"runtimeMemoryProfile": {
"type": "object",
"description": "Optional explicit per-instance application working-set assumption. CWM never infers it from configured memory, CPU, RPS, aggregate memory telemetry, or synthetic latency. It does not alter allocated memory billing.",
"required": [
"workingSetGiB",
"source",
"confidence"
],
"properties": {
"workingSetGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024
},
"source": {
"type": "string",
"enum": [
"user-provided",
"calibrated",
"external"
],
"description": "Provenance category for the declared working-set profile."
},
"confidence": {
"type": "string",
"enum": [
"low",
"medium",
"high"
],
"description": "Confidence level assigned to the declared working-set profile."
},
"limitExceededProbability": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Only calibrated/external profiles may provide a probability."
},
"onLimitExceeded": {
"type": "object",
"description": "Optional bounded consequences; omitted means CWM reports only the threshold condition.",
"properties": {
"termination": {
"type": "string",
"enum": [
"terminate",
"restart"
]
},
"failedWorkFraction": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Required when termination is declared; the explicit bounded fraction of work stranded by that termination."
},
"retryMultiplier": {
"type": "number",
"minimum": 1,
"maximum": 10
},
"latencyPenaltyMs": {
"type": "number",
"minimum": 0,
"maximum": 60000
},
"retryCostPerMillionRequests": {
"type": "number",
"minimum": 0,
"maximum": 100000
}
}
}
}
},
"kubernetesCpuHpa": {
"$ref": "#/$defs/KubernetesCpuHpaConfig"
},
"kubernetesMemoryProfile": {
"type": "object",
"description": "Opt-in per-replica Kubernetes memory-pressure/OOM contract. CWM never infers per-pod memory, OOM likelihood, or working-set demand from the aggregate `memoryUsage` metric, CPU, RPS, or the configured limit alone. Absent by default — kubernetes resources without a profile explicitly report `evaluationStatus: \"not_evaluated\"` in `metrics.kubernetesMemory`. Single-pool clusters emit one row; a cluster with `nodePools` emits one row per pool and evaluates only pools that provide their own profile. Node/replica billing is unaffected.",
"required": [
"limitGiB",
"baselineWorkingSetGiB",
"loadBreakpoints",
"source",
"confidence"
],
"properties": {
"limitGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024,
"description": "Configured `resources.limits.memory` per replica, in GiB."
},
"requestGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024,
"description": "Configured `resources.requests.memory` per replica, in GiB."
},
"baselineWorkingSetGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024,
"description": "Declared idle/floor per-replica working set."
},
"burstWorkingSetGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024,
"description": "Declared transient/burst working set applied only while the replica is still warming up. Must be at least `baselineWorkingSetGiB`."
},
"headroomGiB": {
"type": "number",
"minimum": 0,
"maximum": 1024,
"default": 0,
"description": "Additional declared safety margin folded into the demand/limit comparison."
},
"loadBreakpoints": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"description": "Declared working-set curve keyed on per-replica RPS, in strictly ascending `perReplicaRps` order. CWM interpolates linearly between breakpoints, and below the first breakpoint ramps linearly from the idle `baselineWorkingSetGiB` anchor up to the first breakpoint's declared value. Above the last breakpoint, behavior is governed by `extrapolation` — it never assumes a linear RPS-to-memory relationship beyond what is declared or implied by that policy.",
"items": {
"type": "object",
"required": [
"perReplicaRps",
"workingSetGiB"
],
"properties": {
"perReplicaRps": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Per-replica request rate at which the declared working-set value applies."
},
"workingSetGiB": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1024,
"description": "Declared per-replica working-set demand at this load, in GiB."
}
}
}
},
"extrapolation": {
"type": "string",
"enum": [
"clamp",
"linear"
],
"default": "linear",
"description": "Behavior above the highest declared loadBreakpoint. \"linear\" (default, preserves pre-existing behavior) extrapolates the final declared segment's slope beyond the last breakpoint. \"clamp\" holds demand flat at the last breakpoint's `workingSetGiB` value for any RPS beyond it — for curves known to plateau (e.g. a connection-pool- or cache-bounded working set). Only governs the region above the last breakpoint; the below-first-breakpoint ramp is unaffected either way."
},
"source": {
"type": "string",
"enum": [
"user-provided",
"calibrated",
"external"
],
"description": "Provenance category for the declared working-set profile."
},
"confidence": {
"type": "string",
"enum": [
"low",
"medium",
"high"
],
"description": "Confidence level assigned to the declared working-set profile."
},
"restartDelaySteps": {
"type": "number",
"minimum": 1,
"maximum": 600,
"description": "Bounded restart/readiness delay measured in simulation steps before an OOMKilled replica rejoins serving capacity."
},
"restartDelaySeconds": {
"type": "number",
"minimum": 1,
"maximum": 600,
"deprecated": true,
"description": "Deprecated compatibility input. This historical spelling is normalized as simulation steps, not wall-clock seconds; use restartDelaySteps."
},
"maxConcurrentRestartFraction": {
"type": "number",
"minimum": 0.05,
"maximum": 1,
"default": 0.3333333333333333,
"description": "Upper bound on the fraction of replicas that may be mid-restart at once, modeling k8s's staggered pod eviction/restart behavior."
},
"memoryAwareAutoscaling": {
"type": "boolean",
"description": "Opt-in: when true, the modeled memory-pressure ratio can also trigger HPA scale-out alongside the existing CPU-only default. Leaving this unset/false keeps CPU-only scale-out decisions byte-identical."
},
"memoryScaleOutThresholdRatio": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.85,
"description": "Demand/limit ratio at or above which memory-aware scale-out engages. Only consulted when `memoryAwareAutoscaling` is true."
}
}
},
"kubernetesMemoryEvidence": {
"type": "object",
"description": "Observed configuration from a standard Kubernetes Deployment or StatefulSet. These source-labelled request/limit facts are never treated as runtime working-set demand and do not activate OOM, restart, capacity, latency, error, autoscaling, or billing effects.",
"required": [
"source",
"sourceFile",
"kind",
"workload",
"namespace",
"status"
],
"properties": {
"source": {
"type": "string",
"enum": [
"kubernetes-manifest"
],
"description": "Manifest source category for the observed configuration."
},
"sourceFile": {
"type": "string",
"maxLength": 512,
"description": "Repository-relative path of the manifest containing this configuration."
},
"kind": {
"type": "string",
"enum": [
"Deployment",
"StatefulSet"
],
"description": "Kubernetes workload kind that declares the memory configuration."
},
"workload": {
"type": "string",
"maxLength": 256,
"description": "Name of the Deployment or StatefulSet that supplied the configuration."
},
"namespace": {
"type": "string",
"maxLength": 256,
"description": "Kubernetes namespace containing the workload."
},
"replicas": {
"type": "integer",
"minimum": 1,
"maximum": 1000000,
"description": "Literal replica count declared by th
# --- truncated at 32 KB (131 KB total) ---
# Full source: https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-resource-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cloudworldmodel-ai-resource"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.