Triggering Alarms that Milestone Users can use to create Rules

In our integration we are sending an “alert” to Milestone. we create an Alarm object in our plugin and send it to the Milestone system. This allows our plugin to display the details of the “alert”, in addition to allowing the alarm to appear in the Alarm Monitor pane of the Smart Client.

It is our understanding that end-users do not setup workflows in response to Alarms, but rather in response to Events. As we are creating Alarm objects for the system, there is nothing for the end-users to attach a workflow to. If we create an Event in addition to our Alarm, our existing functionality would remain unchanged and users would then be able to create Rules to respond to our Events.

Is this a proper understanding of the designed workflow? Should we be creating only Events and using those to trigger Alarms?

This might be a fit for what you are asking: https://developer.milestonesys.com/s/article/Create-an-alarm-from-a-MIP-SDK-based-application

Hi Rie.

Thank you for your response!

Two follow-up questions:

  1. Is it possible to create user-defined events programmatically via the SDK?

  2. Is it possible to suppress the user-defined event from appearing inside the Smart Client Alarm Manager? (We don’t want the user to see both our “Alarm” and the user-defined event)

  1. Yes. For this you need to use the Configuration API.

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_configurationapi.html&tree=tree_4.html

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

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

  1. The Smart Client Alarm Manager can be configured to show events instead of alarms but never show both.

If this does not fit your observations I might not have understood the situation, maybe you can illustrate your observations with a screen capture or something similar and add details on how you trigger the event that match an alarm definition and thus makes an alarm.

Hey Bo! (remember me :grinning_face: ?)

Can you send a direct link to the page that discussed created user-defined events? I did not see that in the three links you provided.

Where can I learn more about how to configure SC Alarm Manager to show only the Alarms and not the events?

Thanks!

Ari

I remember you, happy to see you active here. :slight_smile:

There is no direct link to how to create user-defined events, ans no sample that does exactly this.

If you run the sample:

You could also try:

private void createUserDefEvent()
{
	var ms = new VideoOS.Platform.ConfigurationItems.ManagementServer(EnvironmentManager.Instance.MasterSite);
	var udefolder = ms.UserDefinedEventFolder;
	udefolder.AddUserDefinedEvent("testingwithConfig");   
}

-

I am telling you there is no way to get SC Alarm Manager to show both Events and Alarms, so clearly there is something different, please illustrate what you have..

Thank you, Bo!

We will review your feedback and get back to you.