Trigger Analytics Event using Xprotect 2018 R3 SDK

I have the sample code to Trigger Analytics Event with Xprotect 2018 R3 SDK, but where i will get that library.

I am developing java project to integrate my application with your milestone xprotect application.

So this SDK does have any java library or how to establish connection between my app with yours ?

Below is the sample code provided by you.

    EventSource eventSource = new EventSource() { FQID = _selectedItem.FQID, Name = _selectedItem.Name }; EventHeader eventHeader = new EventHeader() { ID = Guid.NewGuid(), Type = "MyType", Timestamp = DateTime.Now, Message = "MyAnalyticsEvent01", Source = eventSource, CustomTag = "TagFromC#" }; AnalyticsEvent analyticsEvent = new AnalyticsEvent(); analyticsEvent.EventHeader = eventHeader; analyticsEvent.Location = "Event location 1"; analyticsEvent.Description = "Analytics event description."; analyticsEvent.Vendor = new Vendor(); analyticsEvent.Vendor.Name = "My Smart Video"; analyticsEvent.ObjectList = new AnalyticsObjectList(); analyticsEvent.ObjectList.Add(GetRectangle());
     
    EnvironmentManager.Instance.SendMessage(
    new VideoOS.Platform.Messaging.Message(MessageId.Server.NewEventCommand)
    { Data = analyticsEvent });

I believe the TriggerAnalyticsEventXML sample (protocol sample) is easy implement in java.

The AnalyticsEventTriggerViaLibrary does rely on the MIP library which is .NET

Unfortunately, there is no java library in the MIP SDK. (With the exception of the Mobile SDK (which cannot be used for this task)).

I tried with XML based for R2 version, but it is not working in recent R3 version, though event server port 9090 is running, getting connection error

Q2- Is there any way my java application can talk to your .net application, i mean any port or any webservice through which my java application can talk.

In Management Client, Tools → Options, find the Analytics Event tab, make sure analytics events are enabled and either all sender addresses are allowed or the address of the sender is allowed.

Check network connectivity; firewall.

You can modify the AnalyticsEventTriggerViaLibrary sample to communicate with your java app. I think I would recommend instead to get the methods of the TriggerAnalyticsEventXML sample to work, hopefully you will get it to work.

With R2, i am able to trigger analytics event successfully with xml format, and i was able to connect milestone event server which was running 9090 port.

but in R3, that port is not running, could you please tell me how will i triggered the same using xml ?

My primary suspicion is still on the setup..

In Management Client, Tools → Options, find the Analytics Event tab, make sure analytics events are enabled and either all sender addresses are allowed or the address of the sender is allowed.

Check network connectivity; firewall. You can test if you send the event in the server itself, does it work?

Please double-check and let me know what you observe.