GET http://IP-address:port/prefix/audit/{HOSTNAME}/{ENDTIME}/{BEGINTIME}
{HOSTNAME} - Server name. |
The ENDTIME and BEGINTIME syntax is described in Get MM archive contents section. |
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. |
| Parametr | Required | Description | |
|---|---|---|---|
filter | No | List of events that can be represented both as a range separated with <-> and <:> and a simple code. The list of event types:
|
Sample request:
GET http://127.0.0.1:80/audit/SERVER1/past/future?filter=17-20,6,1:4
Sample response:
{
"events": [
{
"data": {
"component": "Camera3",
"componentType": "camera",
"device": "Camera3",
"host": "SERVER1",
"property": "vstream-virtual/folder",
"setting": "Directory",
"value": "D:/Movies/Spirit"
},
"eventType": 17,
"timestamp": "20161205T120410.698000"
},
{
"data": {
"detector": "Face detection",
"device": "Camera1",
"host": "SERVER1"
},
"eventType": 18,
"timestamp": "20161205T120459.319000"
}
]
} |