Skip to main content

Example and description of JSON alert POST data

{
  "now": "1568419537.35",
  "alerts": [
    {
      "id": 1804290019,
      "priority": 7,
      "occurrences": 12,
      "first_occurence": 4462.5,
      "last_occurence": 389.31,
      "name": "Device-configuration changed",
      "detail": "By owner."
    },
    {
      "id": 1804290035,
      "priority": 0,
      "occurrences": 1,
      "first_occurence": 0,
      "last_occurence": 0,
      "name": "Device rebooted by firmware",
      "detail": "Howdy do?"
    }
  ]
}
  • now is a 64-bit UNIX timestamp, possibly with a fractional (sub-second) part, formatted as a decimal integer string.
  • alerts is a list of reported alerts:
  • id is a number that uniquely identifies an alert. It is used, for example, to acknowledge or clear an alert.
  • priority is the user-assigned priority level of the alert (0 being the lowest priority and 7 the highest priority).
  • occurrences gives a count of how many times the alert has occurred since it was last cleared.
  • first_occurence and last_occurence specify how many seconds ago the alert occurred for the first time and the last time, respectively, relative to now. That is, the specified number should be subtracted from now to get the absolute UNIX timestamp of when the alert occurred first and last, respectively.
  • name is the name of the alert that occurred.
  • detail provides additional detail on the alert that occurred.