Hi Dojo!
I'm having problems to get the Owner property when using:
engine.GetAlarmProperty(alarm.DataMinerID, alarm.AlarmID, "Owner"));
I'm always getting an empty string no matter if the alarm is ack or not...
Thank you in advance!
Hi Julian,
As Julian has already mentioned, the GetAlarmsProperty method can be used to retrieve custom properties. To retrieve the owner of an active alarm, the following code can be used:
var request = new GetAlarmDetailsMessage(dmaId, alarmId);
var alarm = (AlarmEventMessage)engine.SendSLNetSingleResponseMessage(request);
var owner = alarm.Owner;
Hello Pedro,
The GetAlarmProperty method is for custom properties that can be created for alarms. The "Owner" value is an alarm info data. To retrieve this value, a correlation rule needs to trigger an automation script and pass it the alarm information. The script can then parse the alarm information, which contains the Owner value you are looking for.