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)?
What property name are you using? Be aware that for AlarmFilterField.PropertyValue, the property name should have a prefix indicating the source of the property, e.g. "alarm.xxxx" ,"element.xxxx", "view.xxxx" or "service.xxxx"
I was missing the AlarmFilterField, thanks for adding the different prefixes.