How to trigger an Analytic Event using API Gateway

I am using Python and API Gateway to show an alarm on the Smart Client when our system detects an anomally (we build IA solutions). I’m using “identity_provider.get_token” to authenticate and create a session, api_gateway.get(session, ‘cameras’, access_token) to get all cameras and ID’s, api_gateway.get(session, ‘analyticsEvents’, access_token) to list all events in the system and so on. I’m able to create an alarm and an Analytic Event. My problem is how to fire the created event so the alarm will intecept it and display on the Smart Client (the same action that can be accomplished by pressing “Test Event” button on the client). Has someone done that in any way (python or other)?

The API Gateway is in its current form capable of the functionality that was previously implemented in the Configuration API. There is no way currently to trigger an event or an alarm. In the future it is the ambition to offer much more functionality and make the API Gateway universally useful.

For now I suggest you explore the Analytics Event Trigger via XML sample for triggering analytics events: https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/triggeranalyticseventxml/readme.html&tree=tree_3.html

https://download.milestonesys.com/MIPSDK/Samples/TriggerAlarmFromExternal-ConceptSolution.pdf

Thanks for the reply and the information. :+1:

I’m just asking to make sure I understand.

Are you saying that the API Gateway is currently only able to configure the milestone system, and unable to do any kind of surveillance?

The API Gateway can configure VMS settings, and this is the current functionality. For further detail, please see this documentation - https://doc.developer.milestonesys.com/mipvmsapi/