Read what each simulator saw against what the platform collected
const url = 'https://example.com/api/v1/views/platform/simulation';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/views/platform/simulationReturns the read behind the Platform health page’s simulation section: one row per outpost with a connected simulator, read over a sliding window the server brackets each minute by default (bracket_seconds). Each gap is a loss ratio (count over what went into the hop, 0 healthy, null when nothing did), its masking term and how to read it: impaired under an applied impairment, restarted while the window holds a restart or a change to the fleet the simulator serves, otherwise loss. Beside them, the receipts counted for the window, each protocol’s received and answered counts, service-time quantiles and in-flight high water, and each simulated component’s requests. An outpost reads warming up until the server holds a full window. The devices are unplaced simulator state, so the read needs a fleet-wide component:read; short of that it answers not found. Gated by simulation:read.
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
How often the server brackets each outpost.
Each outpost with a connected simulator; empty when none is.
object
How many brackets the server holds for the outpost.
The outpost’s busy-worker high water; null until an outpost reports it.
object
The component’s name; empty when it is no longer one of the outpost’s simulated components.
Whether the simulator impairs the device at the window’s end.
The locations from the root down to the device’s location, so devices that share a name read apart; empty when it has no location.
Requests the device saw over the window, by protocol.
object
The name of the device’s primary system; empty when it has none.
Whether it is a poll target due over the window that the simulator never saw.
The window’s last bracket; null while warming up.
Why the last bracket or its reads failed; empty when they did not.
Every gap over the window in travel order; null while warming up.
object
Answers the outpost gave up on before they arrived.
How many were lost at the hop over the window, past its masking term.
The hop a request or a batch was lost at, in travel order.
How many went into the hop over the window: the ratio’s denominator.
How many the masking term accounts for, not counted as lost.
What the masking term is, empty when the gap has none.
The protocol the gap is on; empty for a batch gap, which is per outpost.
Count over in, 0 healthy; null when nothing went in, when the sim does not observe the hop, or on a restarted outpost.
How to read the gap: loss is a fault, impaired is expected under an applied impairment, restarted (an outpost or sim that started again, or a sim whose served fleet changed) means no figure is meaningful.
The most requests the simulator held at once over every protocol.
object
Connections the simulator’s listeners on the protocol accepted over the window; 0 for a connectionless protocol. A probe that only connects, or logs in and asks nothing, draws a connection and no request.
Requests it answered.
The most requests on the protocol the simulator held at once.
The simulator’s service time in milliseconds; n is 0 when it timed nothing.
object
Enabled poll targets the window should have drawn on the protocol at least twice.
Requests the simulator received on the protocol over the window.
The outpost’s dispatch queue depth; null until an outpost reports it.
object
Of those, the ones landed after the end, acknowledged before the end read.
Batches the ingest lane held at the end. The server does not read it, so it is 0.
Batches landed from the margin before the window’s start to the bracket after its end.
Of those, the ones landed before the start: a batch acknowledged before the start read.
The window’s first bracket; null while warming up.
Warming up until the server holds a window and the bracket after it; restarted while the window holds a restart of the outpost or its sim, or a change to the fleet the sim serves.
The server’s clock at the read.
A full window’s length.
Example
{ "$schema": "/api/v1/schemas/PlatformSimulationViewOutputBody.json", "outposts": [ { "gaps": [ { "reading": "loss" } ], "state": "warming up" } ]}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}