How to know if an alarm is active for an item

Hello,

I have a mip plugin, much like the sensormonitor with our own items/events/…

Is there a way to retrieve whether a Milestone alarm is active for a certain item from within my mip plugin that runs in the Event Server?

Thanks,

Alex

Hi @Alex Van De Velde​ ,

Have a look at AlarmClientManager

You could also have a look at the MIP Plugin example “Alarm Event Viewer”

Hi @Xavier Julies​ .

That’s indeed usefull.

I wondered if there is a function that we can call just to get the alarm state of an item.

Basically knowing when there is a red circle around the item in the map.

Thanks,

Alex

Hi @Alex Van De Velde​ ,

Glad to hear you found it useful! :+1:

Not sure if the alarm client has a method to return active alarms for a specific Item. You could have a look at IAlarmClient. Perhaps you could use the AlarmFilter method, but I haven’t used it myself.