Add DCStatus data type for the data collectors
authorMichele Tartara <mtartara@google.com>
Thu, 14 Mar 2013 13:09:27 +0000 (13:09 +0000)
committerMichele Tartara <mtartara@google.com>
Thu, 28 Mar 2013 13:13:14 +0000 (14:13 +0100)
commit82437b280123d50fcab4f63e8ddfb79fdf6f6786
tree0cadab104ad588a56a64f720fbdd092a30633b53
parent54c7dff79233310d5cdeb2369d0aff65f8abb651
Add DCStatus data type for the data collectors

Also adds the DCStatusCode, part of DCStatus, and the addStatus
utility function for adding the "status" field to an already existing
JSValue.

The design document is updated to have the status codes sorted by increasing
seriousness.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
doc/design-monitoring-agent.rst
src/Ganeti/DataCollectors/Types.hs