Skip to content

Read what each simulator saw against what the platform collected

GET
/views/platform/simulation
curl --request GET \
--url https://example.com/api/v1/views/platform/simulation

Returns 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.

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
bracket_seconds
required

How often the server brackets each outpost.

integer format: int64
outposts
required

Each outpost with a connected simulator; empty when none is.

Array<object> | null
object
brackets
required

How many brackets the server holds for the outpost.

integer format: int64
busy_workers
required

The outpost’s busy-worker high water; null until an outpost reports it.

integer | null format: int64
devices
required
Array<object> | null
object
component
required

The component’s name; empty when it is no longer one of the outpost’s simulated components.

string
component_id
required
string
impaired
required

Whether the simulator impairs the device at the window’s end.

boolean
location_path
required

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.

Array<string> | null
received
required

Requests the device saw over the window, by protocol.

object
key
additional properties
integer format: int64
system
required

The name of the device’s primary system; empty when it has none.

string
unhit
required

Whether it is a poll target due over the window that the simulator never saw.

boolean
end
required

The window’s last bracket; null while warming up.

string | null format: date-time
error
required

Why the last bracket or its reads failed; empty when they did not.

string
gaps
required

Every gap over the window in travel order; null while warming up.

Array<object> | null
object
answered_late
required

Answers the outpost gave up on before they arrived.

integer format: int64
count
required

How many were lost at the hop over the window, past its masking term.

integer format: int64
gap
required

The hop a request or a batch was lost at, in travel order.

string
in
required

How many went into the hop over the window: the ratio’s denominator.

integer format: int64
masked
required

How many the masking term accounts for, not counted as lost.

integer format: int64
masked_by
required

What the masking term is, empty when the gap has none.

string
protocol
required

The protocol the gap is on; empty for a batch gap, which is per outpost.

string
ratio
required

Count over in, 0 healthy; null when nothing went in, when the sim does not observe the hop, or on a restarted outpost.

number | null format: double
reading
required

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.

string
Allowed values: loss impaired restarted not observed by the sim
in_flight_high
required

The most requests the simulator held at once over every protocol.

integer format: int64
outpost
required
string
protocols
required
Array<object> | null
object
accepted
required

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.

integer format: int64
answered
required

Requests it answered.

integer format: int64
in_flight_high
required

The most requests on the protocol the simulator held at once.

integer format: int64
latency_ms
required

The simulator’s service time in milliseconds; n is 0 when it timed nothing.

object
n
required
integer format: int64
p50
required
number format: double
p95
required
number format: double
p99
required
number format: double
poll_targets
required

Enabled poll targets the window should have drawn on the protocol at least twice.

integer format: int64
protocol
required
string
received
required

Requests the simulator received on the protocol over the window.

integer format: int64
queue_depth
required

The outpost’s dispatch queue depth; null until an outpost reports it.

integer | null format: int64
receipts
required
object
after_end
required

Of those, the ones landed after the end, acknowledged before the end read.

integer format: int64
backlog
required

Batches the ingest lane held at the end. The server does not read it, so it is 0.

integer format: int64
landed
required

Batches landed from the margin before the window’s start to the bracket after its end.

integer format: int64
margin
required

Of those, the ones landed before the start: a batch acknowledged before the start read.

integer format: int64
start
required

The window’s first bracket; null while warming up.

string | null format: date-time
state
required

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.

string
Allowed values: warming up measured restarted
read_at
required

The server’s clock at the read.

string format: date-time
window_seconds
required

A full window’s length.

integer format: int64

Example

{
"$schema": "/api/v1/schemas/PlatformSimulationViewOutputBody.json",
"outposts": [
{
"gaps": [
{
"reading": "loss"
}
],
"state": "warming up"
}
]
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

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"
}