How to send http request to the event server ?

Hi,

I want to know if we can send an http request to the event sever ? and if it’s possible how do that ? with which parameters ?

In a second time we use NGINX for a web site but now when i try to add it through our plugin (with chromium components) it’s just a white page. Maybe we need to add it on trusted site on milestone ? but i dont found any informations about it.

May I ask what you are trying to do? What do you want to achieve with SDK? Can you please add some context and elaborate on your question?

Helo Rie Kito,

I want to link an analitics event with an alarm. The analitics event is an external event of our ISS Spotter system. The main objective of this plugin is to send http request to the event server to trigger the alarm. In a second time this alarm must send an other http request to our system.

For the NGINX part i found a solution.

The easiest way is to make an Alarm Definition in Management Client, please see this sample -

https://doc.developer.milestonesys.com/html/index.html?base=samples/analyticseventlibrary.html&tree=tree_2.html

This sample demonstrates how to submit an Analytics Event to the Milestone XProtect Event Server using the .Net library.

Analytics events can be used to trigger alarms.

Both the analytics event and the alarm can be seen in the Smart Client, or by 3rd party applications.

hello,

Ok for this part but how can i send the http request now ? this is the most important part for us, we need to send a http request to our GUI when the event is triggered.

I guess you need to send Analytics Events (that is what the http request should achieve).

https://developer.milestonesys.com/s/article/exploring-the-MIP-SDK-recommended-top-SDK-samples

-

Analytics Events

Analytics events are events that can include information. LPR events is a good example, in addition to having a timestamp on when it happened, the event includes data that tells the license plate detected and points to a camera in the VMS as the source on which the event was detected.

On analytics events we have a concept document which is a recommended read. http://download.milestonesys.com/MIPSDK/Samples/TriggerAlarmFromExternal-ConceptSolution.pdf

The most popular sample showing how to submit analytics events is the Trigger Analytics Event via XML sample.

“TriggerAnalyticsEventXML”

The protocol sample application has a textbox control in which you can enter the XML defining an Analytics Event, the box can be filled with a sample XML snippet. You can modify the sample XML or enter a whole new XML for testing an analytics event. The XML can be validated against the schema and can be sent to the VMS.

If listening for analytics events, the Alarm and Event Viewer sample is the best choice. Alternatives to the TriggerAnalyticsEventXML sample: “AnalyticsEventTriggerViaLibrary” -Submitting analytics event using MIP library methods. “LibraryEventGenerator” -Submitting analytics event or alarm using MIP Library. “SCOverlayOnEvent” -Plugin shows overlay text based on events and alarms.

-–

If I am wrong about analytics events please elaborate on what you want to see happening when sending the “request”.