Returns details of the requested sensor alert

Params

Param name Description
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean

Examples

Request
  curl -X GET  -H "Content-Type:application/json" -H "X-Auth-Token:g_M23jYW-VRlOSUjC_h3Gg"  https://api.datonis.io/api/v2/sensor_alerts/t922tbd1dt

Response (containing details of the alert fetched)
{
  "sensor_alert": {
    "alert_type": 3,
    "data": {
      "foo": "bar",
      "sensor": {
        "coordinates": null,
        "description": "A simple sensor",
        "sensor_key": "f93dc59fd834td771cab48d57fae45t816b751be",
        "type": "SIMPLE",
        "meta_data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "cpu": {
              "type": "number"
            },
            "mem": {
              "type": "number"
            }
          }
        },
        "name": "S-1",
        "state": "registered",
        "tags_array": [

        ],
        "traits": {
        },
        "unit_of_measure": null,
        "alive": false,
        "tags": "",
        "last_event": 1426504617,
        "last_beat": 1426504613
      },
      "alert_type_string": "Critical"
    },
    "message": "Example CRITICAL alert from C Agent",
    "sensor_alert_key": "t922tbd1dt",
    "timestamp": 734827,
    "alert_type_string": "Critical",
    "sensor_key": "f93dc59fd834td771cab48d57fae45t816b751be",
    "sensor_name": "S-1"
  }
}