Hello,
I'm trying to get the history alarms based on a time range and a property value. I created the following AlarmFilter but it doesn't seem to be working:
var alarmFilterByProperty = new AlarmFilterItemString(AlarmFilterField.PropertyValue, propertyName, AlarmFilterCompareType.Equality, new[] { propertyValue });
var alarmFilter = new AlarmFilter { FilterItems = new AlarmFilterItem[] { alarmFilterByProperty, }, };
Is there something that I'm missing in the filter? Or may the problem be in the SLNetMessage (I'm using GetAlarmDetailsFromDbMessage instead of the AlarmRepository)?
Hi Sebastian,
Maybe indeed it's the GetAlarmDetailsFromDbMessage , can you share me the full script or context?