How to create new alarm definition from the sdk

My target is to create list types, each list have a different alarm that will be auto created in milestone when the user add a new list type.

I would like to create alarms definitions from my plugin, i there an easier way than using the config api client sample or this is the only available method?

best regards,

You can use the strongly typed classes, in this case the VideoOS.Platform.ConfigurationItems.AlarmDefinition Class. Note that it is often very much an idea to explore the task in the Config API Client first to understand the involved parameters tec. but easier to implement it using the strongly typed classes.

i have one more question, how can i get the list of alarm priorities? I want to create the alarms with different priorities already defined and the user added priorities from the management client alarm data settings.Is it possible to retrieve the priority list from the sdk.

best regards,

Thank you for your reply.

Unfortunately there is no method to read the priorities using the MIP SDK.

It is on the wish-list for future enhancement development work at Milestone Development.

Thank you for your reply.