Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:

Table of Contents


Column



General information

...

  • GET 
  • http://IP

...

  • address:port/prefix/archive/events/detectors/{ENDTIME}/{BEGINTIME}

...

  • —get events from detectors from all

...

  • domain

...

  • servers.
    Note
    titleAttention!
    • The ENDTIME and BEGINTIME syntax is described

...

...

    • are sorted by time in ascending order.
    • If ENDTIME > BEGINTIME, then the events

...

    • are sorted in descending order.
  • GET http://IP

...

  • address:port/prefix/archive/events/detectors/{HOSTNAME}/{ENDTIME}/{BEGINTIME}

...

  • —get events from detectors from a certain

...

  • server.
    Tip

    {HOSTNAME}

...

  • —server name (

...

...

  • GET http://IP

...

  • address:port/prefix/archive/events/detectors/{VIDEOSOURCEID}/{ENDTIME}/{BEGINTIME}

...

  • —get events from detectors from a certain camera.
    Tip

    {VIDEOSOURCEID}three-component source endpoint ID (

...

...

...

  • example, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".

ParameterRequiredDescription
limitNoLimit of
detections
events from detectors in the response. If
not
it isn't specified,
it
the deafult value is
equal to
100
offsetNoThe offset of the results
offset
by the specified number.
 For
For example, if a query with offset=0
returned
returns 100 results, then
in order
to get the next results,
it is necessary to
you must run a query
with
with offset=100. If the second query
returned
returns 250 results, then
in order
to get the next results,
it is necessary to
you must run a query
with
with offset=350,
etc.
and so on
typeNo

Get

detections

events from detector of a certain

detection tool

type.

The

Possible values of the type parameter are listed in the table below.

If you need to get

detections

events from several

detection tools

types of detectors, you

need to

must list them separated by commas

joinNo
  • If join=1, then in the response,
the two
  • the two-phase events
will be
  • are merged together, and the duration parameter
will be
  • is returned
which
  • that corresponds to the event duration.
  • If join=0, then in the response, the two-phase events
will not be merged
  • aren't merged together
limit_to_archiveNo
If 

If limit_to_archive=1, then the response

will return

returns the events only from the accessible part of the archive (see

 

Configuring access restrictions to an archive)

archiveNo

The name of the archive from the request to

receive

get the list of archives (

see 

see Get archive contents)

detectorNo
Starting with Axxon One2.0

Get

detections

events from a

certain detection tool. The values of the detector parameter are listed in the table below

Sample requests:

specific detector of a specific camera. To get a specific value, you can run a query, see Get a list of detectors of a camera.

After you run a query, the value for the detector parameter is specified in the name parameter, for example:

  • "name" : "hosts/SERVER/AVDetector.1/EventSupplier"
Note
titleAttention!

Specify {VIDEOSOURCEID} in the request address for the correct operation of the detector, archive and limit_to_archive parameters.

Examples of requests

  • http://127.0.0.1:80/archive/events
  • http://127.0.0.1:80/archive/events
  • /detectors/Server1/DeviceIpint.2/SourceEndpoint.video:0:0/past/future?limit=10&offset=
  • 0
  • 0—get
  • detections
  • events from a certain camera, sorted in descending order. The maximum
  • limit
  • number is 10.
  • http://127.0.0.1:80/archive/events/detectors/Server1/past/future?limit=5&offset=
  • 0
  • 0—get
  • detections
  • events from all
  • detection tools
  • detectors of Server1. The maximum
  • limit
  • number for each
  • detection tool
  • detector is 5.
  • http://127.0.0.1:80/archive/events/detectors/Server1/past/future?limit=5&offset=0&type=
  • Ray
  • Ray—get
  • detections
  • events from all sensors of Server1. The maximum
  • limit
  • number for each sensor is 5.
  • http://127.0.0.1:80/archive/events/detectors/
  • A-ZHUKOV
  • Server1/DeviceIpint.1/SourceEndpoint.video:0:0/future/past?limit=100&detector=hosts/Server1/AVDetector.1/EventSupplier—get
  • detections
  • events from a certain
  • detection tool
  • detector of Server1.
  • http://root:root@127.0.0.1:80/archive/events/detectors/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20230323T112000.000/20230430T210000.000?limit=100&offset=0&type=listed_face_detected,MotionDetected—get
  • detections
  • events from several
  • detection tools
  • detectors of Server1. The
  • detection tools
  • detectors must be listed separated by commas.
  • http://127.0.0.1:80/archive/events/detectors/past/future?limit=1&type=Rayget the current state of all sensors of the
  • Axxon-
  • domain.

...

Note
Expand
titleClick to expandAttention!

We recommend using the past/future parameter only in the first request. After that you must get the timestamp of the most recent recording and use it to request subsequent recordings. Using the past/future parameter along with the limit and offset parameters in subsequent requests can result in duplicate recordings.

Examples of a response

Expand
titleClick to expand

1) join=1

Code Block
{
 

1) join=1

Code Block
{
    "events": [
        {
            ""duration": "000000.467000",
            "id": "09b8729a-a6fc-4ffa-8a83-aebc5c19d171",
            "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
            "rectangles": [
                {
                    "bottom": "0.20831976890563964",
     "index": "0",
              "index"left": "0.57320795059204099",
                    "leftright": "0.573207950592040996804207420349121",
                    "righttop": "0.680420742034912109125151634216308",
    }
          ],
      "topsource": "0.09125151634216308"
                }
            ],
            "source": "hosts/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
            "timestamp": "20190618T112815.527000",
            "type": ""type": "moveInZone"
        },
        {
            "duration": "000004.154000",
            "id": "90c5d09e-c0bb-4c49-bf8b-22d3afffe8c1",
            "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [
    {
     "rectanglesbottom": ["0.72451157569885249",
       "index": "0",
         {
               "left": "0.092941055297851571",
     "bottomright": "0.7245115756988524924284084320068361",
                    "indextop": "0.4965816402435303",
    }
   ],
      "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
       "lefttimestamp": "020190618T112814.092941055297851571426000",
   "type": "moveInZone"
  },
  {
      "duration": "000005.155000",
      "rightid": "0.24284084320068361dc953fad-bb08-4bae-bdce-62a09ab2dbd9",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [
       {
     "topbottom": "0.496581640243530337916545867919921",
     "index": "0",
          }"left": "0.10621988296508789",
     "right": "0.2311831474304199",
      ],"top": "0.11115360260009766"
    }
   ],
     "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
            "timestamp": "20190618T112814.426000293000",
            "type": "moveInZone"
        },
        {
            "duration": "000005000003.155000170000",
            "id": "dc953fadf00875f0-bb08bad7-4bae4e74-bdce879c-62a09ab2dbd90a564baa9d36",
            "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
            "rectangles": [
    {
     "bottom": "0.2848846626281738",
      {"index": "0",
             "left": "0.11811468601226806",
       "bottomright": "0.3791654586791992118662774562835693",
       "top": "0.11245393753051756"
    }
   ],
      "indexsource": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
                    "lefttimestamp": "020190618T112813.10621988296508789358000",
   "type": "moveInZone"
  }
           ],
 "more": true
}

2) join=0

Code Block
{
 "events": [
  {
   "rightalertState": "0.2311831474304199ended",
                    "topid": "0.11115360260009766"cd3571bb-73c1-45cb-8965-a01e167836db",
     "multiPhaseSyncId": "6d72973d-7188-4fa7-9bf9-e3ba6013f2e3",
           }"origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
            "rectangles": [],
            "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
            "timestamp": "20190618T11281420190618T125142.293000417000",
            ""type": "moveInZone"
        },
        {
            "durationalertState": "000003.170000began",
            "id": "f00875f0310ce582-bad75f0d-4e744c27-879ca1d5-0a564baa9d36b14ccc5a877d",
            "originmultiPhaseSyncId": "hosts/6d72973d-7188-4fa7-9bf9-e3ba6013f2e3",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
            "rectangles": [
                {
     "bottom": "0.46943313598632813",
         "index": "0",
     "bottomleft": "0.284884662628173814642228603363036",
         "right": "0.23025640964508054",
           "index"top": "0.027766456604003897",
    }
   ],
          "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "lefttimestamp": "020190618T125142.11811468601226806200000",
   "type": "moveInZone"
  },
  {
   "alertState": "began",
   "id": "aa193bbc-89e8-4204-8805-ac8c915b323c",
    "rightmultiPhaseSyncId": "0.18662774562835693807248bf-4cee-431e-a29f-18ee0ed911ce",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [
    {
        "topbottom": "0.1124539375305175636835212707519532",
     "index": "0",
          }"left": "0.072501201629638662",
     "right": "0.19335731506347656",
      ],"top": "0.03212909698486327"
    }
   ],
     "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
            "timestamp": "20190618T11281320190618T125141.358000966000",
            ""type": "moveInZone"
        }
    ],
    "more": true
}

2) join=0

Code Block
{
 "events": [
  {
   "alertState": "ended",
   "id": "cd3571bb5b15234d-73c12a7f-45cb415f-8965af57-a01e167836db2ac1ce5aa75a",
   "multiPhaseSyncId": "6d72973d17fca913-7188f7a3-4fa74f29-9bf9997f-e3ba6013f2e3d02a575d9fc4",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T12514220190618T125136.417000978000",
   "type": "moveInZone"
  },
  {
   "alertState": "beganended",
   "id": "310ce58248882f92-5f0da809-4c27424c-a1d5b7a7-b14ccc5a877d55ac56b05061",
   "multiPhaseSyncId": "6d72973d8bb9edbe-71884391-4fa74c26-9bf98c7a-e3ba6013f2e37faf620a62eb",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [
    {
  ],
   "bottomsource": "0.46943313598632813hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
     "indextimestamp": "020190618T125136.661000",
     "lefttype": "0.14642228603363036moveInZone",
  },
  {
   "rightalertState": "0.23025640964508054ended",
   "id": "6e98f979-c4f4-4c78-bbf4-6fc268219d79",
   "topmultiPhaseSyncId": "0.027766456604003897"92534e2f-0f88-4698-a1a2-4e70d10cb00a",
    }"origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T12514220190618T125136.200000477000",
   "type": "moveInZone"
  },
  {
   "alertState": "beganended",
   "id": "aa193bbcc9dff8bc-89e8423b-4204414b-88058dee-ac8c915b323c0a0b119a43df",
   "multiPhaseSyncId": "807248bfc8785151-4ceef344-431e4c21-a29f88de-18ee0ed911ce6c339139afdf",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
    {"source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
     "bottomtimestamp": "020190618T125135.36835212707519532843000",
     "indextype": "0moveInZone"
  },
  {
   "leftalertState": "0.072501201629638662ended",
     "rightid": "0.19335731506347656db1f1147-ed50-46ff-84b7-8f06676d8f8e",
     "topmultiPhaseSyncId": "0.03212909698486327"7eceb0b4-c04d-4e17-a405-3aff419fd94a",
    }
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T12514120190618T125135.966000677000",
   "type": "moveInZone"
  },
  {
   "alertState": "endedbegan",
   "id": "5b15234df9ccceda-2a7f9e16-415f4832-af579f1f-2ac1ce5aa75a1270fd0be365",
   "multiPhaseSyncId": "17fca913-f7a3-4f29-997f-d02a575d9fc4",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0", {
     "timestampbottom": "20190618T1251360.97800030296741485595702",
     "typeindex": "moveInZone0"
  },
  {
   "alertStateleft": "ended0.14849423646926879",
     "idright": "48882f92-a809-424c-b7a7-55ac56b050610.21262614011764525",
     "multiPhaseSyncIdtop": "8bb9edbe-4391-4c26-8c7a-7faf620a62eb",0.092105445861816404"
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier", }
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T12513620190618T125135.661000677000",
   "type": "moveInZone"
  },
  {
   "alertState": "endedbegan",
   "id": "6e98f97987ca4e1e-c4f44a8c-4c78433a-bbf48b67-6fc268219d796e73f65fa0e2",
   "multiPhaseSyncId": "92534e2f7eceb0b4-0f88c04d-46984e17-a1a2a405-4e70d10cb00a3aff419fd94a",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
 {
     "timestampbottom": "20190618T1251360.47700022597263336181642",
     "typeindex": "moveInZone0"
  },
  {
   "alertStateleft": "ended0.080717468261718744",
     "idright": "c9dff8bc-423b-414b-8dee-0a0b119a43df0.19577339172363281",
     "multiPhaseSyncIdtop": "c8785151-f344-4c21-88de-6c339139afdf",
0.014194698333740235"
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [ }
   ],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T12513520190618T125134.843000909000",
   "type": "moveInZone"
  },
  {],
   "alertStatemore": "ended",true
}     "id": "db1f1147-ed50-46ff-84b7-8f06676d8f8e",
   "multiPhaseSyncId": "7eceb0b4-c04d-4e17-a405-3aff419fd94a",
   "origin": "hosts/Server1/AppDataDetector.1/EventSupplier",
   "rectangles": [],
   "source": "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
   "timestamp": "20190618T125135.677000",
   "type": "moveInZone"
  },
  {
   "alertState": "began",
   "id": "f9ccceda-9e16-4832-9f1f-1270fd0be365                        


Note
titleAttention!

By default, the request timeout is 10 seconds.

If the server fails to return all events (the quantity is set in the limit parameter) in 10 seconds, the response will be as follows:

Code Block
{
 "events": [],
 "more": false
}

In this case, you must repeat the request and reduce the value of the limit parameter.

Info
titleNote
  • The multiPhaseSyncId parameter is in the response only for two-phase alarms with the alertState parameter.
  • The timestamp field isn't unique, so you must skip the previously received events from detectors starting from the search interval.

When you request the events of the queue detector, the response will include an additional extra parameter that contains the queue length estimate expressed by the minimum and maximum values.

Code Block
  {
   "alertState": "happened",
   "
multiPhaseSyncId
extra": 
"17fca913-f7a3-4f29-997f-d02a575d9fc4",
[
    {
     "
origin
queueMax": "
hosts/Server1/AppDataDetector.1/EventSupplier",
4"
   
"rectangles": [
 },
    {
     "
bottom
queueMin": "
0.30296741485595702
4"
,

    
"index": "0"
}
   ],
   
"
left
id": "
0.14849423646926879
b17129b2-1588-794b-94f6-d078a226efb2",
   
"
right
origin": "
0.21262614011764525
hosts/Server1/AVDetector.4/EventSupplier",
   
"
top
rectangles": 
"0.092105445861816404" }
[],
   "source": "hosts/Server1/DeviceIpint.
1
2/SourceEndpoint.video:0:0",
   "timestamp": "
20190618T125135
20181206T075621.
677000
621000",
   "type": "
moveInZone
QueueDetected"
  }
, { "alertState": "began", "id": "87ca4e1e-4a8c-433a-8b67-6e73f65fa0e2", "multiPhaseSyncId": "7eceb0b4-c04d-4e17-a405-3aff419fd94a", "origin"

}

When you request the events from License plate recognition detectors, the response will include an additional plate parameter that contains the recognized license plate in Unicode format.

Code Block
{
			"alertState" : "happened",
			"id" : "f1f334a3-3fb3-4770-80bf-c6519240b5cf",
			"origin" : "hosts/Server1/
AppDataDetector
AVDetector.1/EventSupplier",
			"plate" : "\u0412427\u0412\u041c99",
			"rectangles" : 
			[
{
				{
					"bottom" : 
"
0.
22597263336181642"
70833333333333337,
					"index" : 
"
0
"
,
					"left" : 
"
0.
080717468261718744"
4597222222222222,
					"right" : 
"
0.
19577339172363281"
67222222222222228,
					"top" : 
"
0.
014194698333740235" } ],
64409722222222221
				}
			],
			"source" : "hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0",
			"timestamp" : "
20190618T125134
20230725T140945.
909000
208000",
			"type" : "
moveInZone
plateRecognized"
} ], "more": true }                            
Note
titleAttention!

By default, the request timeout is 10 seconds.

If the Server fails to return all events (the quantity is set in the limit parameter) in 10 seconds, the response will be as follows:

Code Block
{
   "events": [],
   "more": false
}

In this case, it is necessary to repeat the request and reduce the value of the limit parameter.

Info
titleNote

The multiPhaseSyncId parameter will be in the response only for two-phase alarms with alertState parameter.

Field timestamp is not unique so it might be necessary to skip the previously received alarms starting from the search interval.

When requesting the queue detection tool triggerings, the response includes an additional extra parameter that contains the queue length estimate expressed by the minimum and maximum values.

Code Block
       {
            "alertState": "happened",
            "extra": [
                {
                    "queueMax": "4"
                },
                {
                    "queueMin": "4"
                }
            ],
            "id": "b17129b2-1588-794b-94f6-d078a226efb2",
            "origin": "hosts/Server1/AVDetector.4/EventSupplier",
            "rectangles": [],
            "source": "hosts/Server1/DeviceIpint.2/SourceEndpoint.video:0:0",
            "timestamp": "20181206T075621.621000",
            "type": "QueueDetected"
        }
}

Possible values of the type parameter:

...

NoiseAudio

...

Possible values of the detector parameter:

...

detector

...

Image Noise Detection

...

Noise

...

		}

Possible values of the type parameter

Note
titleAttention!

Possible values of the type parameter depend on the product version and installed detectors. To get the current values, you can run a query to get the list of detectors of a specific camera (see Get a list of detectors of a camera).

Detectortype
Object tracker or Neural tracker
Line crossingoneLine
Motion in areamoveInZone
Stop in areastopInZone
Entrance in areacomeInZone
Exit from areaoutOfZone
Loitering in arealongInZone
Multiple objectslostObject
License plate recognitionplateRecognized
License plate recognition (from the list)listed_lpr_detected
Face detectorfaceAppeared
Face detector (from the list)listed_face_detected
Visitors counterPeopleIn, PeopleOut
Queue detectorQueueDetected
Fire detectorFireDetected
Smoke detector
SmokeDetected
Neural counterlotsObjects
Position changeSceneChangeDetected
Image noise detectorCameraBlindDetected
Loss of qualityImageDegradation
Blurred image detectorBlurredDegradation
Compression artifacts detectorCompressedDegradation
Motion detectorMotionDetected
Audio loss detectorNullAudio
Signal detectorSignalAudio
Noise detector

NoiseAudio

Human pose detector
Person down detectorrecumbent
Sitting person detectorsitDown
Hands up detectorhandsUp
Shooter detectoractiveShooter
Water level detectorLevelOut
Handrail holding detectorhandRail
People counterlotsObjects
Close-standing people detectorpeopleDistance
People maskingenabledMaskEvents
Note
titleAttention!
  • Case sensitivity of
  • detection tool triggering types is not
  • event types from detectors isn't guaranteed. For
  • instance
  • example,
  • '
  •  ComeInZone
  • '
  • ,
  • '
  • comeInZone
  • '
  • and
  • '
  • COMEINZOne
  • '
  • values are
  • to be
  • considered as the same
  • ones
  • values.
  • If you received a value
  • not
  • that isn't included in the list, then this is an
  • embedded detection tool triggered
  • event from an embedded detector.