2018-08-16 17:31:56 +03:00
|
|
|
Controller notifications
|
|
|
|
========================
|
|
|
|
|
|
|
|
Controller notifications can be received from the controller, they can be used to get information
|
|
|
|
about computes and appliance templates.
|
|
|
|
|
|
|
|
Notification endpoints
|
|
|
|
**********************
|
|
|
|
|
|
|
|
Listen to the HTTP stream endpoint or to the WebSocket endpoint.
|
|
|
|
|
|
|
|
* :doc:`api/v2/controller/notification/notifications`
|
|
|
|
* :doc:`api/v2/controller/notification/notificationsws`
|
|
|
|
|
|
|
|
It is recommended to use the WebSocket endpoint.
|
|
|
|
|
|
|
|
Available notifications
|
|
|
|
***********************
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
ping
|
|
|
|
----
|
|
|
|
Keep-alive between client and controller. Also used to receive the current CPU and memory usage.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/ping.json
|
|
|
|
|
|
|
|
|
|
|
|
compute.created
|
2018-11-20 08:04:27 +02:00
|
|
|
---------------
|
2018-08-16 17:31:56 +03:00
|
|
|
|
|
|
|
A compute has been created.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/compute.created.json
|
|
|
|
|
|
|
|
compute.updated
|
2018-11-20 08:04:27 +02:00
|
|
|
---------------
|
2018-08-16 17:31:56 +03:00
|
|
|
|
|
|
|
A compute has been updated.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/compute.updated.json
|
|
|
|
|
|
|
|
|
|
|
|
compute.deleted
|
|
|
|
---------------
|
|
|
|
|
|
|
|
A compute has been deleted.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/compute.deleted.json
|
|
|
|
|
2018-11-20 08:04:27 +02:00
|
|
|
|
|
|
|
appliance.created
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
An appliance has been created.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/appliance.created.json
|
|
|
|
|
|
|
|
|
|
|
|
appliance.updated
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
An appliance has been updated.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/appliance.updated.json
|
|
|
|
|
|
|
|
|
|
|
|
appliance.deleted
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
An appliance has been deleted.
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/appliance.deleted.json
|
|
|
|
|
|
|
|
|
2018-08-16 17:31:56 +03:00
|
|
|
log.error
|
|
|
|
---------
|
|
|
|
|
|
|
|
Sends an error
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/log.error.json
|
|
|
|
|
|
|
|
|
|
|
|
log.warning
|
|
|
|
------------
|
|
|
|
|
|
|
|
Sends a warning
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/log.warning.json
|
|
|
|
|
|
|
|
|
|
|
|
log.info
|
|
|
|
---------
|
|
|
|
|
|
|
|
Sends an information
|
|
|
|
|
|
|
|
.. literalinclude:: api/notifications/log.info.json
|