Talos docs

GET /events

Since 0.6
Plain text

Request

Query parameters

ParameterShapeMeaning
sinceintegeronly events with frame >= since. Default 0.
after_seqintegeronly events with seq > after_seq. The precise polling cursor.
filterstringmatch type or the custom/trigger event name. Comma-separated for alternatives: filter=trigger,door-opened.
entitystringonly events naming this entity id
limitintegerat most this many, keeping the most recent

Response

Response: array of EventRecord

One frame-stamped thing that happened.

FieldTypePresentDescription
seqintegeralwaysMonotonic per-process sequence number. Strictly increasing, no gaps.
frameintegeralwaysThe frame the event fired on.
timenumberalwaysSimulated seconds since the scene loaded.
kindEventKindalwaysWhat happened.

Response: EventKind

The payload of an EventRecord, tagged by type on the wire.

ValueMeaning
collisionTwo colliders started or stopped touching. Mirrors argus_host::GameEvent::Collision.
triggerA sensor volume was entered or left. Mirrors argus_host::GameEvent::Trigger.
customctx.events.emit(name, data) from a behavior.
script_errorA behavior threw, ran away or blew its per-tick budget and was disabled — or, with disabled false, keeps running: it threw a stale handle (entity-despawned) from a per-tick hook, or its update stayed over its wall-clock budget (phase budget) under the host's default OverrunPolicy::Warn.
script_warningA behavior did something the engine let pass but its author almost certainly did not mean. The behavior keeps running; nothing is disabled.
uiThe game UI's stack, focus or an activation changed.
logctx.log(...) from a behavior.

Example

curl "http://127.0.0.1:7700/events"

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.