Event source list empty for Kind.Server

The plugin I made will send an event and the EventSource is a recording server.

When trying to configure a rule that reacts to this event I’m unable to select a recording server as the source. In fact the source list is empty.

In the ItemManager I do this:

events.Add(new EventType()

  {

    GroupID = EventGroupId,

    ID = eventId,

    DefaultSourceKind = Kind.Server,

    Message = "test message",

    SourceKinds = new List<Guid>() { Kind.Server }

  });

When I change “Kind.Server” to “Kind.Camera” the source list gets filled with all cameras.

What should I change?

We tested if we could trigger events and the EventSource is a recording server. It works fine so let me introduce what we did.

Please see Analytics Event Trigger via MIP .Net library sample. This sample demonstrates how to submit an Analytics Event to the Milestone XProtect Event Server using the .Net library.

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

We used this sample with small changes. We changed btnSelectEventSource_Click method in MainForm.cs, please see below our code -

private void btnSelectEventSource_Click(object sender, EventArgs e)
{
	// "69a97d14-145c-4e85-b0fd-739a1e6fa4c9" is Recording server GUID
	_selectedItem = Configuration.Instance.GetItem(new Guid("69a97d14-145c-4e85-b0fd-739a1e6fa4c9"), Kind.Server);
}

Please create an AnalyticsEvent named “MyAnalyticsEvent01” in Management Client first.

Then go back to the sample and select event source in the modified-sample, then the Recording server is selected.

Then, click Send AnalyticsEvent.

If you want to see if the event triggered, please run Alarm and Event Viewer sample (https://doc.developer.milestonesys.com/html/index.html?base=samples/alarmviewer_sample.html&tree=tree_2.html) and select Event radio button.

You will be able to see the event and Event Source is Recording Server in the sample view.

If this answer does not fit for your question, please explain what you are doing.