In the sensu-go event documentation, it gives examples like this:
"history": [
{
"executed": 1522100315
},
{
"executed": 1522100915
}
],
and
"history": [
{
"status": 1,
"executed": 1542667666
}
],
Note that the first example shows only timestamps, without any status values, but the second includes status.
The documentation for checks doesn’t mention history at all.
The events documentation for original Sensu is clearer, and states that the last 21 exit status codes are returned in history, but these are shown without timestamps:
"history": [0,0,0,0,0,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0]
Can someone please clarify:
- Are the event formats in Sensu and Sensu Go different?
- How much event history does Sensu Go return? Is it the last 21 events, like Sensu?
- Is the documentation example showing “executed” but not “status” correct? If so, what does that mean - that the status was zero? That the status could not be determined? Something else?
Thanks!