Events
query all events (aka issues) the monitoring has discovered
get
https://api.cloudradar.io
/v1/events/
Get Events
Request
curl -sSX GET \
https://api.cloudradar.io/v1/events/ \
-H 'content-type: application/json' \
-H 'Authorization: Bearer 33891543f62ead9e18c32e1252e320c2710f708d9085fd5b'|jq
Response HTTP 200
{
"events": [
{
"uuid": "00dd51b0-5e12-43db-847f-2bd466e15d34",
"checkKey": "net.tcp.http.809.success",
"action": "alert",
"state": 1,
"reminders": true,
"createTimestamp": 1555497336,
"resolveTimestamp": 0,
"meta": {
"name": "HTTP Check (Port 809)\n has failed 1 time",
"uuid": "2926cd7d-8a49-44c0-ac97-f68987a199ed",
"check": {
"name": "The rule HTTP Check (Port 809)\n has failed 1 time has triggered an alert.",
"uuid": "5046342a-2dc3-4956-8470-f8ed5ac41732",
"lastValue": "0",
"lastValueTextTemplate": null
},
"linkUrl": null,
"footnote": null,
"linkText": null,
"severity": "alert",
"description": "",
"affectedHost": {
"name": "h105.hostgum.eu",
"uuid": "3f7c79d3-5614-46ac-ab2e-cdcb06bbfa34",
"connect": "h1550855453.hostgum.eu",
"location": "Check performed from CloudRadar datacenter EU-WEST-Netherlands.",
"description": "Nice host. Isn't it?"
}
},
"lastCheckValue": 0
}
]
}
Request using filters and pagination
curl -sSX GET \
"https://api.cloudradar.io/v1/events/?filter[state]=Active&sort=-date-created&page[number]=1&page[size]=2" \
-H "Authorization: Bearer $TOKEN"|jq
Last modified 1yr ago