Skip to content

Read Omniglass's own health in one call

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

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

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
figures_read
required

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

boolean
groups
required

The outpost table’s column groups, in order: the page renders these and has no key list of its own

Array<object> | null
object
keys
required

The group’s columns, in order, each with its catalog facts

Array<object> | null
object
description

The metric type’s catalog description, the column’s tooltip

string
label
required

The metric type’s label, the column header

string
name
required

The metric type’s name: the key an outpost’s figures are indexed by

string
unit

The metric type’s unit, when it has one

string
label
required

The group’s title over its columns

string
name
required

The group’s stable handle

string
lab
required

True when this server runs as an omniglass lab

boolean
loss_hops
required

The hops an outpost’s loss composes: the ones its own platform component records

Array<string> | null
outposts
required

One row per outpost, in name order

Array<object> | null
object
component

The outpost’s platform component uuid, where every figure has its history; absent for an outpost the boot has not yet adopted

string
enrolled
required
boolean
figures

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
key
additional properties
object
observed_at
required

When the sample was taken

string format: date-time
value
required
number format: double
health

The outpost’s platform component health, which tones the row; absent without a fleet-wide component read

string
label
required
string
last_heartbeat_at

The outpost’s last heartbeat; absent when it has never sent one

string format: date-time
loss

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

number format: double
name
required
string
pipeline

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
end_to_end
required

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

Array<object> | null
object
kind
required

The kind of item

string
Allowed values: metric property event log
last_hour

The last hour’s end to end loss

number format: double
newest

The current newest windows’ end to end loss

number format: double
end_to_end_total
required

The same over every kind summed per hop

object
last_hour

The last hour’s end to end loss

number format: double
newest

The current newest windows’ end to end loss

number format: double
hops
required

The hops recorded today, in the order an item crosses them: the page draws these and has no hop list of its own

Array<object> | null
object
by_component
required

Each component’s share of the hop, in name order; the shares sum to the hop’s figures

Array<object> | null
object
component
required

The platform component that recorded this share of the hop, where its series live

string
kinds
required

The component’s figures per kind it carried

Array<object> | null
object
kind
required

The kind of item, the series instance

string
Allowed values: metric property event log
last_hour
required

Every window over the last hour, summed

object
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest
required

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
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest_at

When the newest window was written, current or not

string format: date-time
name
required

The component’s name

string
total
required

The component’s figures, every kind summed

object
last_hour
required

Every window over the last hour, summed

object
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest
required

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
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest_at

When the newest window was written, current or not

string format: date-time
component_class
required

Which platform components record the hop

string
Allowed values: outpost server
description
required

What the hop does and what counts as out and as lost there

string
id
required

The hop’s name, as the delivery model names it

string
Allowed values: schedule sim outpost ingest
keys
required

The keys the hop’s figures are read from, the same three on every hop

Array<string> | null
kinds
required

The hop’s figures per kind it carried, across its components; a kind it carried nothing of is absent

Array<object> | null
object
kind
required

The kind of item, the series instance

string
Allowed values: metric property event log
last_hour
required

Every window over the last hour, summed

object
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest
required

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
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest_at

When the newest window was written, current or not

string format: date-time
label
required

The hop’s title

string
total
required

The hop’s figures, every kind summed

object
last_hour
required

Every window over the last hour, summed

object
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest
required

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
in
required

Items the hop took in over the span (delivery-in-count summed)

integer format: int64
loss

(in - out) / in over the span’s summed counts, never an average of ratios; 0 is healthy. Absent when nothing went in

number format: double
out
required

Items the hop handed on over the span (delivery-out-count summed)

integer format: int64
newest_at

When the newest window was written, current or not

string format: date-time
keys
required

The delivery keys’ catalog facts, the explainer the page shows

Array<object> | null
object
description

The metric type’s catalog description, the column’s tooltip

string
label
required

The metric type’s label, the column header

string
name
required

The metric type’s name: the key an outpost’s figures are indexed by

string
unit

The metric type’s unit, when it has one

string
read_at
required

The server’s clock when the view was read: uptime and the liveness pill are both judged against it, so they read one clock

string format: date-time
servers
required

Every server’s platform component, the identity its boot wrote and its panels; empty without a fleet-wide component read

Array<object> | null
object
alarms
required

The open alarms on the server’s platform component, newest first; a panel is flagged when one names a key it carries

Array<object> | null
object
key

The key the raising rule samples, which names the panel the alarm flags; absent for a hand-raised alarm

string
message
required
string
raised_at
required
string format: date-time
rule

The name of the rule that raised the alarm; absent for a hand-raised alarm

string
severity
required
string
component
required

The server’s platform component uuid

string
groups
required

The server’s panels (Requests, Ingest, Queues, Retention), in order: the page renders these and has no key list of its own

Array<object> | null
object
figures
required

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

Array<object> | null
object
instance
required

The series instance (a route and status class, a lane, a table, a reason); empty for an unsplit key

string
key
required

The key the figure is a sample of

string
observed_at
required

When the sample was taken

string format: date-time
value
required
number format: double
keys
required

The panel’s keys, in order, each with its catalog facts

Array<object> | null
object
description

The metric type’s catalog description, the row’s tooltip

string
label
required

The metric type’s label, the row’s title

string
name
required

The metric type’s name: the key the panel’s figures carry

string
of

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

string
rank

Above zero, the key is a ranked list: only its rank highest instances of the newest window are returned, highest first

integer format: int64
unit

The metric type’s unit, when it has one

string
label
required

The panel’s title

string
name
required

The panel’s stable handle

string
health
required

The server component’s recorded health

string
name
required

The server’s platform component name

string
started_at

When the server’s current boot started (server-started-at); uptime is read_at minus this

string format: date-time
version

The build the server runs, as its boot wrote it (server-version); absent before a boot has written it

string
system

The platform system and its health; absent without a fleet-wide system read

object
health
required

The platform system’s recorded health, the same one its health read serves

string
id
required

The platform system’s uuid: the page’s health links to its system detail, where the health is explained

string
name
required
string

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

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