RLMetrics
Evaluation-oriented metrics returned alongside obs by the step and observation endpoints. These are the outputs your reward function and monitoring dashboards should read. Fractions (error_rate, uptime) are in the range [0, 1]. The `connection_pressure` field is optional — it is only present when the simulation contains at least one database resource (e.g. RDS, Cloud SQL, Azure SQL, Autonomous DB, Managed PostgreSQL). Agents should guard against its absence when no database resource is configured.
Properties
| Name | Type | Description |
|---|---|---|
| cost_usd_hr | number | Current hourly cost in USD |
| latency_p95 | number | P95 latency in milliseconds |
| error_rate | number | Error rate as a fraction (0–1) |
| uptime | number | Uptime fraction (0–1); equals 1 − error_rate |
| sla_violations | integer | Number of SLA dimension violations at this step (0 = fully compliant) |
| connection_pressure | number | DB connection-pool pressure ratio (activeConnections / maxConnections), capped at 3.0. Only present when the simulation contains database resources. Values > 1.0 indicate pool exhaustion; values > 1.5 |
| compute | array | Per-resource warm-up state for compute and Kubernetes resources that carry a warm-up counter. Only present when at least one such resource exists in the simulation. Absent when no resources have a war |
| error_breakdown | object | Per-contributor breakdown of the error rate. Each field is the pre-clamp additive contribution in percentage-point units (same scale as `error_rate × 100`). `queue_absorption` is the amount removed by |
| ttft_p50_ms | number | Weighted-average time-to-first-token (TTFT) in milliseconds across all `inferenceMode` GPU Kubernetes clusters in the simulation. Accounts for the accelerator catalog TTFT base, the prompt-token count |
| decode_tokens_per_sec | number | Weighted-average effective decode throughput (tokens/second) across all `inferenceMode` GPU Kubernetes clusters. Derived from the accelerator catalog decode rate, the topology decode factor, and batch |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-rlmetrics-schema.json",
"title": "RLMetrics",
"description": "Evaluation-oriented metrics returned alongside obs by the step and observation endpoints. These are the outputs your reward function and monitoring dashboards should read. Fractions (error_rate, uptime) are in the range [0, 1]. The `connection_pressure` field is optional — it is only present when the simulation contains at least one database resource (e.g. RDS, Cloud SQL, Azure SQL, Autonomous DB, Managed PostgreSQL). Agents should guard against its absence when no database resource is configured.\n",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cloudworldmodel-ai-openapi.yml#/components/schemas/RLMetrics",
"type": "object",
"required": [
"cost_usd_hr",
"latency_p95",
"error_rate",
"uptime",
"sla_violations"
],
"properties": {
"cost_usd_hr": {
"type": "number",
"description": "Current hourly cost in USD"
},
"latency_p95": {
"type": "number",
"description": "P95 latency in milliseconds"
},
"error_rate": {
"type": "number",
"description": "Error rate as a fraction (0–1)"
},
"uptime": {
"type": "number",
"description": "Uptime fraction (0–1); equals 1 − error_rate"
},
"sla_violations": {
"type": "integer",
"description": "Number of SLA dimension violations at this step (0 = fully compliant)"
},
"connection_pressure": {
"type": "number",
"description": "DB connection-pool pressure ratio (activeConnections / maxConnections), capped at 3.0. Only present when the simulation contains database resources. Values > 1.0 indicate pool exhaustion; values > 1.5 indicate severe saturation. Use this field to build reward functions that penalise connection-pool exhaustion independently of the aggregate error_rate signal.\n"
},
"compute": {
"type": "array",
"description": "Per-resource warm-up state for compute and Kubernetes resources that carry a warm-up counter. Only present when at least one such resource exists in the simulation. Absent when no resources have a warm-up counter.\n\n**Mid-episode transition:** Like `obs.warmup_factor`, this array is absent at episode start when no compute resource carries a warm-up counter. It appears dynamically once a cold compute instance is provisioned mid-episode (via `add_resource` or canvas autoscaling) and disappears again once all warm-up windows complete. Guard against its absence with `metrics.compute ?? []` or `metrics.get(\"compute\", [])`.\n\nAgents should read `obs.warmup_factor` as the primary scalar observation feature — do not re-derive it from step counters or this array.\n",
"items": {
"type": "object",
"properties": {
"resource_id": {
"type": "string",
"description": "Resource id of this compute or Kubernetes resource"
},
"name": {
"type": "string",
"description": "Human-readable resource name"
},
"warmup_factor": {
"type": "number",
"description": "Normalized capacity factor in (0, 1]. Value is 1.0 when fully warmed; less than 1.0 while warming (steepest at step 0). Use this directly as an RL observation feature instead of inferring it from step counters.\n"
},
"warming": {
"type": "boolean",
"description": "True while the resource is still in its warm-up window"
},
"warmup_steps_remaining": {
"type": "integer",
"description": "Steps remaining until the resource is fully warmed (0 when warmed)"
}
}
}
},
"error_breakdown": {
"type": "object",
"description": "Per-contributor breakdown of the error rate. Each field is the pre-clamp additive contribution in percentage-point units (same scale as `error_rate × 100`). `queue_absorption` is the amount removed by queue buffering (positive value = reduction). `dependency_failure` is the client-level contribution from failed downstream dependency paths. Only present when the simulation engine produces an errorBreakdown for the step. Absent on early steps or simulations without failure sources. Use these fields to build reward functions that penalise specific failure modes — for example, penalise `pool_saturation > 0` for modeled connection demand beyond a usable database limit, or reward reducing `capacity_overload` after a scale-out. `database_pressure` reports the generic contribution once a database's connection or CPU utilization exceeds its effective threshold (80% by default); benchmark-compatibility runs retain their provider reference fit. It shares a combined 5 percentage-point database-error cap with `pool_saturation`. The accompanying details name the database and whether connection use, CPU, or both drove the pressure. Pool-saturation details identify databases whose modeled demand exceeds their own usable connection limits. `cpu_overload` is serving-CPU telemetry, not a compute-failure signal. Only active, request-serving compute and Kubernetes resources that are actually serving traffic contribute; parked or unavailable nodes are excluded from the numerator and denominator. Database and network resource CPU is separate and never contributes to `cpu_overload`. For each eligible serving resource, the engine computes `max(0, (cpuUsagePercent - 80) / 20)`, averages those per-resource excesses, and multiplies by the provider slope. Ordinary/custom AWS uses a 10 percentage-point slope: one eligible AWS node at 100% CPU contributes 10 points, while eligible nodes at 100% and 70% contribute 5 points. Adding a parked 100% node, a database at 100%, or a network resource at 100% leaves that value unchanged. Other providers currently use slope 0. The owned AWS CRUD benchmark may intentionally report zero here as an internal calibration policy; that is not a generic API rule and should not be applied to ordinary AWS responses.\n",
"properties": {
"database_pressure": {
"type": "number",
"description": "Generic database pressure contribution after per-database connection utilization or CPU utilization exceeds its effective threshold (80% by default); benchmark-compatibility runs retain their provider reference fit."
},
"database_pressure_details": {
"type": "array",
"description": "Per-database attribution for the under-limit pressure contribution.",
"items": {
"type": "object",
"required": [
"resource_id",
"name",
"cause",
"modeled_connections",
"usable_connection_limit",
"connection_utilization",
"cpu_utilization",
"contribution_pct"
],
"properties": {
"resource_id": {
"type": "string"
},
"name": {
"type": "string"
},
"cause": {
"type": "string",
"enum": [
"connection_pressure",
"cpu_pressure",
"connection_and_cpu_pressure",
"provider_reference_fit"
]
},
"modeled_connections": {
"type": "number",
"minimum": 0
},
"usable_connection_limit": {
"type": "number",
"minimum": 0
},
"connection_utilization": {
"type": "number",
"minimum": 0
},
"cpu_utilization": {
"type": "number",
"minimum": 0
},
"contribution_pct": {
"type": "number",
"minimum": 0
}
}
}
},
"pool_saturation": {
"type": "number",
"description": "Error contribution from connection-pool exhaustion (percentage points)"
},
"pool_saturation_details": {
"type": "array",
"description": "Databases whose modeled connection demand exceeds their own usable pool limits.",
"items": {
"type": "object",
"required": [
"resource_id",
"name",
"cause",
"modeled_connections",
"usable_connection_limit",
"demand_basis"
],
"properties": {
"resource_id": {
"type": "string"
},
"name": {
"type": "string"
},
"cause": {
"type": "string",
"enum": [
"connection_limit_exceeded"
]
},
"modeled_connections": {
"type": "number",
"minimum": 0
},
"usable_connection_limit": {
"type": "number",
"minimum": 0
},
"demand_basis": {
"type": "string",
"enum": [
"modeled connection demand; not observed live sessions"
]
}
}
}
},
"db_failure": {
"type": "number",
"description": "Error contribution from failed or overloaded database resources (percentage points)"
},
"compute_failure": {
"type": "number",
"description": "Error contribution from failed compute nodes (percentage points)"
},
"capacity_overload": {
"type": "number",
"description": "Error contribution from traffic exceeding compute capacity (percentage points)"
},
"cpu_overload": {
"type": "number",
"description": "Serving CPU overload contribution in percentage points. Uses the mean per-resource CPU excess above 80% among active serving compute/Kubernetes resources, excluding parked or unavailable nodes and excluding database/network CPU. Ordinary/custom AWS uses a 10-point slope, so 100% on one eligible node contributes 10 points.\n"
},
"oci_storage": {
"type": "number",
"description": "Error contribution from OCI storage I/O issues (percentage points)"
},
"queue_absorption": {
"type": "number",
"description": "Amount of error rate absorbed (buffered) by queue resources (percentage points, positive = reduction in effective error rate). Subtract this from the sum of the other contributors to get the net error rate before clamping.\n"
},
"dependency_failure": {
"type": "number",
"description": "Client-level error contribution from unavailable or failing downstream dependency paths (percentage points)"
}
}
},
"ttft_p50_ms": {
"type": "number",
"description": "Weighted-average time-to-first-token (TTFT) in milliseconds across all `inferenceMode` GPU Kubernetes clusters in the simulation. Accounts for the accelerator catalog TTFT base, the prompt-token count (`inputTokensPerRequest`), the topology TTFT factor, and batch pressure at the current GPU utilization. Only present when the simulation contains at least one active `inferenceMode` cluster with positive throughput weight. Absent on non-inference simulations. Use this field to reward inference-serving agents that minimize time-to-first-token.\n"
},
"decode_tokens_per_sec": {
"type": "number",
"description": "Weighted-average effective decode throughput (tokens/second) across all `inferenceMode` GPU Kubernetes clusters. Derived from the accelerator catalog decode rate, the topology decode factor, and batch pressure at the current GPU utilization. Higher values indicate the cluster is decoding tokens faster. Only present when at least one active `inferenceMode` cluster exists with positive throughput weight. Absent on non-inference simulations. Convert to per-request decode latency: `decodeMs = (outputTokensPerRequest / decode_tokens_per_sec) * 1000`.\n"
}
}
}
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
curl "https://apis.io/api/v1/json-schemas/cloudworldmodel-ai-rlmetrics"
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.