Returns details of the requested alert
| Param name | Description |
|---|---|
|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
|
is_oem optional |
Show alert of child account if is_oem flag is true. Value: Must be one of: <code>true</code>, <code>false</code>, <code>true</code>, <code>false</code>. |
Request
curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:ENDVcVtaZvVuKlSIxKhQbw" https://api.datonis.io/api/v3/alerts/6abfc13459
Response (containing details of the alert fetched)
{
"alert": {
"alert_key": "6abfc13459",
"alert_type": 0,
"created_at": 1448451693,
"data": {
"thing": {
"bi_directional": true,
"coordinates": [
20.15,
78.09
],
"created_at": 1448435611,
"description": "Thing for Energy Meters",
"name": "Energy Meter 1",
"state": null,
"tags_array": [
"Residential"
],
"thing_key": "45bf16bb4e",
"updated_at": 1448435611,
"user_defined_properties": {
"Firmware Ver": "1.0",
"STATE": "OK"
},
"alive": false,
"tags": "Residential",
"last_event": null,
"last_beat": null,
"thing_template_name": "Energy Meter",
"thing_template_key": "82e2et9c31"
},
"instruction": {
"definition": {
"command": 1
},
"description": null,
"instruction_key": "t4bd14d659",
"name": "Turn ON",
"created_at": 1448275718,
"updated_at": 1448275718
},
"alert_type_string": "Info"
},
"message": "Instruction Turn ON sent to Energy Meter1",
"timestamp": 1448451,
"updated_at": 1448451693,
"alert_type_string": "Info",
"thing_key": "45bf16bb4e",
"thing_name": "Energy Meter 1",
"instruction_key": "t4bd14d659",
"instruction_name": "Turn ON"
}
}