Hi, I can't quite explain the responses from my DMAs using GetAlarms&V2 with the following filter. From some DMSystems I get nothing but information events in the response, from others I get Critical, Major etc alarms but their numbers are very different to what I expect. Is there anything obviously wrong with this filter?
var alarmPayload = new
{
connection = connectionId,
filter = new
{
History = true,
InfoEvents = true,
// SlidingWindow = false,
FilterItem = new
{
__type = "Skyline.DataMiner.Web.Common.v1.DMAAlarmFilterSeverity", //.DMAAlarmFilterSeverity
Match = true,
Severities = new[] { "Critical", "Major", "Minor", "Warning", "Information" },
},
StartTime = startTime,
EndTime = endTime,
// Masked = true,
FullAlarmTree = false,
// Columns = new[] { "status",},
Limit = 1000,
// SortBy = new[] {"StartTime"},
},
};
Thanks
So in the end the issue seemed to be having severity information in the filter along with InfoEvents = true. I removed one and it all started to respond as expected.