Read Omniglass's own health in one call
const url = 'https://example.com/api/v1/views/platform';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/platformReturns the read behind the Platform health page: the server clock (read_at), whether this is a lab, the platform system and its health, each server’s running build, start time and panels (Requests, Ingest, Queues and Retention: each key’s catalog facts and its latest sample per instance, a ranked key cut to the ten highest of its newest window in the database, and the open alarms on the server component with the key each one’s rule samples), the outpost table’s column groups with each key’s catalog facts, and one row per outpost with its last heartbeat, its platform component’s current figure per key (a gauge’s latest sample, a window count only while its window is the newest) and its loss over its own hops, and the pipeline: each hop an item crosses, in order, with its in, out and loss per kind and per component, newest window and last hour, and the end to end. The rows need a fleet-wide outpost:read, so a location-scoped holder is refused rather than shown an empty table. The platform components are unplaced, so the figures, health and servers (with their panels) need a fleet-wide component:read and the system a fleet-wide system:read; short of that each (the pipeline and the outpost loss with them) is left out, never zeroed. Gated by outpost:read.
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
True when the caller’s component read reached the platform components. False means the figures, health and servers are left out because the caller may not read them, not because nothing was reported
The outpost table’s column groups, in order: the page renders these and has no key list of its own
object
The group’s columns, in order, each with its catalog facts
object
The metric type’s catalog description, the column’s tooltip
The metric type’s label, the column header
The metric type’s name: the key an outpost’s figures are indexed by
The metric type’s unit, when it has one
The group’s title over its columns
The group’s stable handle
True when this server runs as an omniglass lab
The hops an outpost’s loss composes: the ones its own platform component records
One row per outpost, in name order
object
The outpost’s platform component uuid, where every figure has its history; absent for an outpost the boot has not yet adopted
The current figure per key, by key name: a gauge’s latest sample, a window count only while its window is the newest. A key the outpost has never reported, or whose last window has passed, is absent, never zero; the whole map is absent without a fleet-wide component read
object
object
When the sample was taken
The outpost’s platform component health, which tones the row; absent without a fleet-wide component read
The outpost’s last heartbeat; absent when it has never sent one
The share of what the outpost’s own hops (loss_hops) took in over the last hour that they lost, every kind summed per hop and composed across them as the pipeline’s end to end is; 0 is healthy. Absent when nothing went in on any of them, or without a fleet-wide component read
Where work is lost: each hop’s in, out and loss per kind, newest window and last hour, and the end to end. Absent without a fleet-wide component read
object
Per kind any hop carried, the share lost anywhere on the path: 1 - the product of every hop’s survival (1 - loss), over the hops with a loss. Absent where no hop had one
object
The kind of item
The last hour’s end to end loss
The current newest windows’ end to end loss
The same over every kind summed per hop
object
The last hour’s end to end loss
The current newest windows’ end to end loss
The hops recorded today, in the order an item crosses them: the page draws these and has no hop list of its own
object
Each component’s share of the hop, in name order; the shares sum to the hop’s figures
object
The platform component that recorded this share of the hop, where its series live
The component’s figures per kind it carried
object
The kind of item, the series instance
Every window over the last hour, summed
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
Each component’s newest report window while it is current (within two report windows), summed; a component that stopped reporting adds nothing here, only to the last hour
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
When the newest window was written, current or not
The component’s name
The component’s figures, every kind summed
object
Every window over the last hour, summed
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
Each component’s newest report window while it is current (within two report windows), summed; a component that stopped reporting adds nothing here, only to the last hour
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
When the newest window was written, current or not
Which platform components record the hop
What the hop does and what counts as out and as lost there
The hop’s name, as the delivery model names it
The keys the hop’s figures are read from, the same three on every hop
The hop’s figures per kind it carried, across its components; a kind it carried nothing of is absent
object
The kind of item, the series instance
Every window over the last hour, summed
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
Each component’s newest report window while it is current (within two report windows), summed; a component that stopped reporting adds nothing here, only to the last hour
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
When the newest window was written, current or not
The hop’s title
The hop’s figures, every kind summed
object
Every window over the last hour, summed
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
Each component’s newest report window while it is current (within two report windows), summed; a component that stopped reporting adds nothing here, only to the last hour
object
Items the hop took in over the span (delivery-in-count summed)
(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in
Items the hop handed on over the span (delivery-out-count summed)
When the newest window was written, current or not
The delivery keys’ catalog facts, the explainer the page shows
object
The metric type’s catalog description, the column’s tooltip
The metric type’s label, the column header
The metric type’s name: the key an outpost’s figures are indexed by
The metric type’s unit, when it has one
The server’s clock when the view was read: uptime and the liveness pill are both judged against it, so they read one clock
Every server’s platform component, the identity its boot wrote and its panels; empty without a fleet-wide component read
object
The open alarms on the server’s platform component, newest first; a panel is flagged when one names a key it carries
object
The key the raising rule samples, which names the panel the alarm flags; absent for a hand-raised alarm
The name of the rule that raised the alarm; absent for a hand-raised alarm
The server’s platform component uuid
The server’s panels (Requests, Ingest, Queues, Retention), in order: the page renders these and has no key list of its own
object
The latest sample per key and instance, in key order: a ranked key’s newest window highest first, cut to its rank; any other key by instance. A key never sampled has no figure
object
The series instance (a route and status class, a lane, a table, a reason); empty for an unsplit key
The key the figure is a sample of
When the sample was taken
The panel’s keys, in order, each with its catalog facts
object
The metric type’s catalog description, the row’s tooltip
The metric type’s label, the row’s title
The metric type’s name: the key the panel’s figures carry
The key this one is read against, printed as a pair (connections in use of the pool’s size); absent for a key read alone
Above zero, the key is a ranked list: only its rank highest instances of the newest window are returned, highest first
The metric type’s unit, when it has one
The panel’s title
The panel’s stable handle
The server component’s recorded health
The server’s platform component name
When the server’s current boot started (server-started-at); uptime is read_at minus this
The build the server runs, as its boot wrote it (server-version); absent before a boot has written it
The platform system and its health; absent without a fleet-wide system read
object
The platform system’s recorded health, the same one its health read serves
The platform system’s uuid: the page’s health links to its system detail, where the health is explained
Example
{ "$schema": "/api/v1/schemas/PlatformViewOutputBody.json", "pipeline": { "end_to_end": [ { "kind": "metric" } ], "hops": [ { "by_component": [ { "kinds": [ { "kind": "metric" } ] } ], "component_class": "outpost", "id": "schedule", "kinds": [ { "kind": "metric" } ] } ] }}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"}