Skip to content

Commit

Permalink
added consoleEvents API
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed May 19, 2016
1 parent 13feb96 commit e0c5b2a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/api.rst
Expand Up @@ -238,6 +238,26 @@ Return a list of events for all monitors within a specified date/time range
curl -XGET "http://server/zm/api/events/index/StartTime%20>=:2015-05-15%2018:43:56/EndTime%20<=:208:43:56.json"


Return event count based on times and conditions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The API also supports a handy mechanism to return a count of events for a period of time.

This returns number of events per monitor that were recorded in the last one hour

::

curl "http://server/zm/api/events/consoleEvents/1%20hour.json"

This returns number of events per monitor that were recorded in the last day where there were atleast 10 frames that were alarms"

::

curl "http://server/zm/api/events/consoleEvents/1%20day.json/AlarmFrames >=: 10.json"





Configuration Apis
^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit e0c5b2a

Please sign in to comment.