Hi, can I know is there any method to hide Live Event Limit events from Alarm Journal Table?
You will have to use extension functions of the component filterAlarm
Thanks for reply. But how can I check whether the events belong to Live Limit events/Auto-Ack?
you can add something like:
def filterEvent(alarmEvent):
try:
if alarmEvent==None:
return True
ackUser = get(alarmEvent,'AckUser')
if ackUser!=None:
if str(ackUser) in ["tag:Live Event Limit","tag:Auto-Ack"]:
return False
else:
return True
else:
return True
except:
return True`
1 Like
Thanks for reply. But I not sure what’s the problem here, seems like it doesn’t work too.
Hi Mazeyrat, I think there’s something wrong with the code you shared.
However, I found that the code below works!
Btw, thanks for your tips!
substring1 = "tag:Live Event Limit"
substring2 = "tag:Auto-Ack"
val = str(alarmEvent.get("ackUser"))
if (substring1 in val) or (substring2 in val):
return False
else:
return True
1 Like