Event - Listing

Parameters Copied

Example response Copied

{
   "list" : [
      {  
         "eventid" : "9373",
         "eventtype" : "0",   # State change event
         "markdown" : "0",   
         "objectid" : "194",
         "output" : "OK - load average: 1.53, 1.73, 1.58",
         "servicename" : "Check Loadavg",
         "state" : "ok",
         "state_type" : "hard",
         "time" : "1248858348"
      },
      {
         "ack_author" : "admin",
         "ack_comment" : "Due to power failure",
         "eventid" : "9372",
         "eventtype" : "1",
         "objectid" : "194",
         "servicename" : "Check Loadavg",
         "state" : "ok",
         "state_type" : "hard",
         "time" : "1248858348",
      },
      {
         "downtime_author" : "admin",
         "downtime_comment" : "Offline for repairs",
         "downtime_end" : "1248860000",
         "downtime_start" : "1248858348",
         "eventid" : "9370",
         "eventtype" : "2",   # Downtime start event. Same for eventtype=3
         "markdown" : "0",   
         "objectid" : "194",
         "output" : "OK - load average: 1.53, 1.73, 1.58",
         "servicename" : "Check Loadavg",
         "state" : "ok",
         "state_type" : "hard",
         "time" : "1248858348",
      },
      ...
  ],
  "summary" : {
      "entries" : "10",
      "filtered_maxeventid" : "9373",
      "filtered_new_event_count" : "2",
      "maxeventid" : "9373",
      "page" : "1",
      "pages" : "85",
      "total_entries" : "843"
   }
}

The time, downtime_start and downtime_end parameters are the number of seconds since epoch which by definition is in the UTC time zone.

Note

Some fields are conditional and will only be displayed if appropriate.
["Opsview On-premises"] ["API", "Technical Reference"]

Was this topic helpful?