Hi Dojo,
Does someone has example code for getting all the active alarms for all elements using a specific connector in Automation?
Hi all,
Based on the answer of João I found a way to get all the alarms with just a single call.
var switchProtocols = new List<string>
{
"Generic Switch/Production",
};GetActiveAlarmsMessage gaam = new GetActiveAlarmsMessage
{
Filter = new Skyline.DataMiner.Net.Filters.AlarmFilter
{
FilterItems = new Skyline.DataMiner.Net.Filters.AlarmFilterItem[] {
new AlarmFilterItemString
{
Field = AlarmFilterField.Protocol,
Values = switchProtocols.ToArray(),
},
},
},
};var response = (ActiveAlarmsResponseMessage)engine.SendSLNetSingleResponseMessage(gaam);