Talos docs

GET /state

Since 0.6

The committed state this server is serving, and what it will take on.

Plain text

The body form of x-argus-stamp, for a client that reads JSON more easily than headers, plus the two ceilings and how much of each is in use. An agent deciding whether to open another socket or fire another capture reads this rather than discovering the answer as a 503.

Response

Response: StateStampView

The body of GET /state: which committed state, and what this server will take on.

FieldTypePresentDescription
stampStateStampalwaysThe committed state the published snapshot describes.
contacts_stampStateStampalwaysThe committed state the published contact list was materialised at.
readersintegeralwaysLive WS /stream readers attached right now.
max_readersintegeralwaysHow many this server will serve at once. A socket past it is refused with at_capacity.
exact_jobsintegeralwaysExact operations in flight right now.
max_exact_jobsintegeralwaysHow many this server will run at once. One past it is refused with at_capacity.

Response: StateStamp

Which committed state a response describes.

FieldTypePresentDescription
artifactintegeralwaysThe applied artifact identity. Bumped by a load, a restart, a hot reload and a scene patch.
frameintegeralwaysThe simulation tick this state was committed at. Restarts reset it; revision does not.
revisionintegeralwaysA monotonic counter over every committed state change, ticked or not.
structureintegeralwaysThe structural generation: bumped whenever the published identity set may differ.

Example

curl "http://127.0.0.1:7700/state"

Start a server with argus run --serve; the port is --port (7700 by default). The request and response fields are in the query API guide.