[Maas-devel] Longpoll js events, dashboard integration

Raphaël Badin raphael.badin at canonical.com
Mon Mar 12 18:08:51 UTC 2012


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




More information about the Maas-devel mailing list