I have a correlation rule which does triggers an automation script. I would like to update the "Alarm Type"
i.e Acknowledged, UnAssigned, New Alarm etc.
automation script engine has the engine.acknowledgeAlarm property. But I would like to use other status based on some business logic.
Kindly suggest how to achieve this.
Hi Ramesh,
I believe you can use SetAlarmStateMessage to achieve this.
Example:
var tree = new AlarmTreeID(dmaId, elementId, rootAlarmId);
var message = new SetAlarmStateMessage(tree, AlarmUserStatus.UnResolved, $"User {username} released ownership.");
engine.SendSLNetMessage(request);
The AlarmUserStatus enum also includes other members you can use to set different states on the alarm.