sensu/sensu — pull request #682 by portertech (2014-01-10 17:27:22+00:00)
Title: Store all event data (snapshot)

Storing all of the event data produces snapshots, check and client data at that time. Added an event ID (UUID).

This change will break current dashboards and tooling that queries the API for event data.

`API /events`

``` json
[
{
"id": "1ccfdf59-d9ab-447c-ac11-fd84072b905a",
"client": {
"name": "i-424242",
"address": "127.0.0.1",
"subscriptions": [
"test"
],
"nested": {
"attribute": true
},
"service": {
"password": "REDACTED"
},
"keepalive": {
"thresholds": {
"warning": 10
}
},
"timestamp": 1389374650
},
"check": {
"command": "echo -n :::name::: :::nested.attribute::: && exit 2",
"subscribers": [
"test"
],
"interval": 1,
"name": "tokens",
"issued": 1389374667,
"executed": 1389374667,
"output": "-n i-424242 true\n",
"status": 2,
"duration": 0.005,
"history": [
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2",
"2"
]
},
"occurrences": 1,
"action": "create"
},
{
"id": "3a3f9c37-fb08-408e-a2f3-3bb499815261",
"client": {
"name": "i-424242",
"address": "127.0.0.1",
"subscriptions": [
"test"
],
"nested": {
"attribute": true
},
"service": {
"password": "REDACTED"
},
"keepalive": {
"thresholds": {
"warning": 10
}
},
"timestamp": 1389374650
},
"check": {
"command": "echo -n foobar && exit 1",
"standalone": true,
"interval": 1,
"name": "standalone",
"issued": 1389374667,
"executed": 1389374667,
"output": "-n foobar\n",
"status": 1,
"duration": 0.005,
"history": [
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1"
]
},
"occurrences": 1,
"action": "create"
}
]
```