Versions Compared

Key

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

...

ParameterDescription
from The oldest  date date of message search period. Example: 2012-12-27T15%3A19%3A16.000%2B03%3A00
to The latest date of message search period. Example: 2012-12-27T15%3A19%3A16.000%2B03%3A00
count Maximum number of messages in reply in range [1, 200]. Default is 20. Server can return more messages if there are few messages in the database.
objectIdObject id. Examples: CAM:1, GRAY:5 etc.. If parameter is not specified, events are returning for all.
action

Event type. If the parameter is specified, then the response will contain only events of the specified type.

Examples:

  • REC start recording
  • REC_STOP stop recording
  • ARM arming the camera
  • DISARM disarming the camera
  • disconnected loss of connection with the camera

...

Code Block
languagejs
[
 {
  "id": "{3AED63A0-19BE-EB11-9020-B42E99FDB342}",
  "objectId": "MACRO:7",
  "ts": "2021-05-26T14:58:05.000+03:00",
  "description": "Action executed",
  "addInfo": "event1",
  "type": "Empty",
  "params2": "",
  "params3": "",
  "params1": "1",
  "params0": "User 1"
 },
 {
  "id": "{26840B9A-19BE-EB11-9020-B42E99FDB342}",
  "objectId": "MACRO:7",
  "ts": "2021-05-26T14:58:04.000+03:00",
  "description": "Action executed",    
  "addInfo": "event2",
  "type": "Empty",
  "params2": "",
  "params3": "",
  "params1": "1",
  "params0": "User 1"
 }
]

Return codes:

200 - OK
400 - invalid parameter (e.g. date format)
500 - error
503 - error of core connection
504 - time-out (core failed to return data within 2000 milliseconds)