GET http://IP-Address:port/prefix/archive/events/alerts/VIDEOSOURCEID/ENDTIME/BEGINTIME?limit=COUNT&offset=COUNT – gets the list of alarms.
where VIDEOSOURCEID - three-component source endpoint ID (see Get list of video sources (cameras)). For instance, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".
If limit is not specified, it is equal to 100. The raisedAt field is not unique so passing of previously received alarms starting from the search interval can be requested.
Sample response:
{
"events" :
[
{
"type": "alert",
"id": "42D43A79-90D6-4ba7-BD23-1714996A2F88",
"raisedAt": "20101230T103950.000",
"zone": "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0",
"reasons": ["ruleAlert", "videoDetector"],
"initiator": "plateRecognized",
"reaction":
{
"user": "root",
"reactedAt": "20101230T103958.000",
"severity": "alarm"
},
"detectorName": "5.License Plate Recognition Detection"
},
...
],
"more": true
}
Possible values of the reasons array: armed, disarmed, userAlert, ruleAlert, videoDetector, audioDetector and ray.
Possible values of the severity field: unclassified, false, notice, warning and alarm.
Possible values of the initiator field:
first-level detectors:
second-level detectors:
any detector if the value of its triggering type is not standardized;
user removed from the system.
Case sensitivity of detector triggering types is not guaranteed. For instance, 'ComeInZone', 'comeInZone' and 'COMEINZOne' values are to be considered as the same ones. |