This repository has been archived by the owner on Nov 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Events
Farshid Tavakolizadeh edited this page Mar 7, 2019
·
5 revisions
Events are useful when a GUI client wants to receive updates as soon as they arrive to the manager. Events are send over websockets and are preferred over short polling.
The websocket is exposed at /events
endpoint. The client subscribes to all events, except when the list of events is passed in topics query parameter. E.g. /events?topics=event1,event2,...
The following events are available:
-
logs
(plural) - additionally supportingtarget
andtask
queries targetAdded
targetUpdated
Plural events use the following format:
{
"topic": "<eventTopic>",
"payload": []
}
where payload
is an array of objects of the expected event type.
Singular events follow:
{
"topic": "<eventTopic>",
"payload": {}
}
where payload
is the event object.