Since switching over to the new dashboard, Developers may have noticed the Generic Events Generator is no longer available in My Nx. Don’t worry, it’s still accessible – just in a different location.
The Generic Events Generator – a tool created to help developers and integrators build HTTP Generic Event Calls subject to their own specific parameters and modifiers – is still accessible via the Nx Server API / Server Web Admin.
Check out the video below to learn how to access and use the Generic Events Generator:
From there, Developers can enter their own parameters and modifiers to generate an API Call for use in the Nx Witness Client and Rules Engine.
Read on to get the lowdown on the Nx Server API, HTTP Generic Events, and the CreateEvent API Call – tools used by Developers to integrate 3rd party systems with Nx Witness and Powered by Nx products quickly and easily.
The Nx Witness Server API provides a standard set of API calls for 3rd party systems. With the Nx Witness Server API, 3rd party systems can send Nx Witness events using a standard API call in the form of an HTTP string – also known as the CreateEvent API call.
To complete a CreateEvent API call, developers can add any of the following modifiers which allow developers to provide additional information for use in searching Events & Rules or even triggering actions (e.g. start recording) in Nx Witness.
Timestamp
A text field that contains the date and time an event was generated accurate to the millisecond.
Example:
http://address:port/api/createEvent?timestamp=YYYY-MM-HHTHH:MM:SS
Source
A text field that contains the name of the device or system creating an event.
Example:
http://address:port/api/createEvent?timestamp=YYYY-MM-HHTHH:MM:SS&source=sourcename
Caption
A text field that contains a short description of an event.
Example:
http://address:port/api/createEvent?timestamp=YYYY-MM-HHTHH:MM:SS&source=sourcename&caption=shorttextcaption
Description
A text field that contains a long description of an event.
Example:
http://address:port/api/createEvent?timestamp=YYYY-MM-HHTHH:MM:SS&source=sourcename&caption=shorttextcaption&description=textdescriptionoftheevent
Metadata
Additional information associated with an event, in the form of a JSON object.
Example:
http://address:port/api/createEvent?timestamp=YYYY-MM-HHTHH:MM:SS&source=sourcename&caption=shorttextcaption&description=textdescriptionoftheevent&metadata={“cameraRefs”:[“cameraIDforcamera1″,”cameraIDforcamera2”]}
Methods of Finding the CameraIDs: