Dashboard device-presence SSE stream
GET/api/v1/device/events/presence
Long-lived Server-Sent Events stream for the dashboard. Opens with a snapshot event carrying the currently-online device ids, then emits a device-presence event per online/offline transition. : ping keepalive comments keep the stream warm.
Request
Responses
- 200
SSE stream (text/event-stream). First frame is event: snapshot with data: a DevicePresenceDto[] of the currently-online devices; each following event: device-presence frame carries a single DevicePresenceDto. : ping keepalive comments carry no event.
- text/event-stream
- Schema
- Example (from schema)
Schema
- DevicePresenceDtoFrame
- DevicePresenceDtoFrameArray
- Keepalive comment
Array [
]
oneOf
Possible values: [snapshot, device-presence]
data
object
The device whose connection state changed.
True when the device just came online, false when it went offline.
Epoch-millis timestamp of the transition.
Possible values: [snapshot, device-presence]
data
object[]
The device whose connection state changed.
True when the device just came online, false when it went offline.
Epoch-millis timestamp of the transition.
string
{}