Skip to main content

streamEvents

GET 

/api/v1/stream

Server-sent events for the UI. Each event names an object that changed, with enough to decide whether to re-fetch it; it carries only objects in the caller's scopes. It opens for any signed-in caller but a token restricted to scopes; a caller without a role gets resync and its own operations and change sets only. The stream has no positions and resumes nothing: every connection starts with resync, and the client re-fetches its views; Last-Event-ID is ignored. An event can arrive twice or after a later one of the same object, so a client acts on it only by re-fetching. A change reaches the streams of every node within a few seconds, whichever node made it. A comment line keeps the connection alive at least every 30 s. The stream checks its session or token and the caller's roles before it sends a change and at least every 5 s: it carries what the caller's roles allow at that moment, and it ends when the session or token has ended (docs/architecture.md §11; the stream doesn't count as a request for the session's idle time).

EventData
alertStreamAlert
groupStreamGroup
change_setStreamChangeSet
operationStreamOperation
downtimeStreamDowntime
heartbeatStreamHeartbeat
inventoryStreamInventory
linkStreamLink
resync{}

Request​

Responses​

Event stream; each data line is the JSON of the event's schema