Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET http://IPaddressIP-Address:port/prefix/archive/events/alerts/{ENDTIME}/{BEGINTIME} − get alarms from all Domain Servers.

...

Note
titleAttention!

If ENDTIME < BEGINTIME in the request, then the events in the response will be sorted by time in ascending order.

If ENDTIME > BEGINTIME, then the events will be sorted in descending order.

GET http://IPaddressIP-Address:port/prefix/archive/events/alerts/{HOSTNAME}/{ENDTIME}/{BEGINTIME} − get alarms from a certain Server.

Tip

{HOSTNAME} Server name (see Get Server list).

GET http://IPaddressIP-Address:port/prefix/archive/events/alerts/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME} − get alarms from a certain camera.

...

ParameterRequiredDescription
limitNo

The limit of alarms in the response. If not specified, it is equal to 100 by default.

offsetNo

The results offset by the specified number. For example, if a query with offset=0 returned 100 results, then in order to get the next results, it is necessary to run a query with offset=100. If the second query returned 250 results, then in order to get the next results, it is necessary to run a query with offset=350, etc.

limit_to_archiveNo

If limit_to_archive=1, then the response will return the events only from the accessible part of the archive (see  Configuring access restrictions to archive).

archiveNo

The name of the archive from the request to receive the list of archives (see Get archive contents).

...