Most recent alerts

GET /ATX/alerts/recent

Return a minimal set of the most recent alerts (Max 5)

Example request:

GET /ATX/alerts/recent HTTP/1.0
Host: 192.168.168.168
Accept: application/json, text/javascript

Example response:

HTTP/1.0 200 OK
Content-Type: application/json

{
   "recent": [{
     "who": "system",
     "what": "Power Supply ID",
     "when": 1520445079,
     "name": "ihigh",
     "mesg": "Over current",
     "siteId": "Demo Laptop"
   }, {
     "who": "system",
     "what": "Power Supply ID",
     "when": 1520445079,
     "name": "ihigh",
     "mesg": "Over current",
     "siteId": "Demo Laptop"
   }, {
     "who": "admin",
     "what": "Power Supply ID",
     "when": 1520445407,
     "name": "psOff",
     "mesg": "Power supply off",
     "siteId": "Demo Laptop"
   }, {
     "who": "admin",
     "what": "Power Supply ID",
     "when": 1520445413,
     "name": "psOn",
     "mesg": "Power supply on",
     "siteId": "Demo Laptop"
   }]
}
Response JSON Object:
 
  • who (string) – The name of the user who caused the reason for the alert
  • what (string) – The name of the port or power supply that is cause for alert
  • when (number) – The unix time stamp of when the alert was generated
  • name (string) – The alert [key] property used to map alert types to a human readable message
  • mesg (string) – A human readable message describing the alert
  • siteId (string) – The location of where the device that caused the alert