← Back to team overview

maas-devel team mailing list archive

Longpoll js events, dashboard integration

 

Hi all,

I'm working on longpoll atm and I just wanted to make sure that the
events I'm going to fire on the JavaScript side will be fine to be
handled by the dashboard.

For now we will have 3 events: "Node.created", "Node.updated" and
"Node.delete".  The payload of an event will contain the node instance
with all the fields serialized :

event name: "Node.created"
event payload:
    {
        "event_key": "Node.created",
        "instance": {
            "hostname": "sun",
            "pk": 3,
            "system_id": "node-17ca41c2-6c39-11e1-a961-00219bd0a2de",
            "architecture": "i386",
            [...]
        }
    }

Huw, will that be all right?

--
Raphaël


Follow ups