Skip to navigation

Get tripwire events

View as Markdown
Retrieve tripwire events over a time range, optionally filtered by sensor, place, tripwire, object type, effective status, and result limit.

Query parameters

fromTimestampdatetimeRequired
toTimestampdatetimeRequired
sensorIdstringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter is incompatible with place. Only one of them can exist in the query.
placestringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter is incompatible with sensorId. Only one of them can exist in the query.
tripwireIdstringOptionalformat: "^.{0,10000}$"<=10000 characters
This parameter must be used together with sensorId and it is incompatible with place.
maxResultSizelongOptional1-500Defaults to 25
objectTypestringOptionalformat: "^.{0,10000}$"<=10000 characters
effectivebooleanOptionalDefaults to true

This parameter is used to obtain effective/actual set of tripwire events. If effective events are being obtained, then only the latest tripwire event of each object will be retrieved.

Response headers

Access-Control-Allow-OriginstringOptionalformat: "^.{0,10000}$"<=10000 characters

CORS header to allow cross-origin requests.

X-RateLimit-LimitintegerOptional
The maximum number of requests allowed in the current time period.
X-RateLimit-RemainingintegerOptional
The number of requests remaining in the current time period.
X-RateLimit-ResetintegerOptional

The time when the rate limit will be reset (Unix timestamp).

Response

Successful Operation.
tripwireEventslist of objects
timestampdatetime
Idstringformat: "^.{0,10000}$"<=10000 characters
idstringformat: "^.{0,10000}$"<=10000 characters
timeIntervalfloat
enddatetime
lengthlong-10000-10000
speedOverTimelist of doubles
sensorobject
placeobject
objectobject
directionenum
speeddouble
distancedouble
bearingdouble
videoPathstringformat: "^.{0,10000}$"<=10000 characters
locationsobjectOptional
smoothLocationsobjectOptional
eventobjectOptional
edgeslist of stringsOptional
analyticsModuleobjectOptional

Errors

400
Bad Request Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error