Hi,
I'm trying to filt some alarm using filterAlarm Extension function. But the value return none. Is it anything wrong here?
Hi,
I'm trying to filt some alarm using filterAlarm Extension function. But the value return none. Is it anything wrong here?
alarmEvent.get("Priority")
returns an Enum which will always evaluate as false when compared to a string. Write it like this to make it work as expected:
#def filterAlarm(self, alarmEvent):
priority = alarmEvent.get("Priority").toString()
if priority == 'High':
return True
return False
That's cool. It is running now. Thanks.