Re: Event Handlers in Scheduled Downtime
Posted: Tue Mar 10, 2026 8:16 am
The onus should lie with the event handler not the admins.
To do this, in your handler, put a guard in place to make sure that the handler should fire.
Now, there's no flaming hoops for the admins/users to jump through to quiet the notifications or stop the handler actions from being executed.
You handler should not introduce more toil, it should help to reduce it
Happy Monitoring!
--SN
To do this, in your handler, put a guard in place to make sure that the handler should fire.
Code: Select all
#SUDO CODE
#DETERMINE DOWNTIME STATUS
def isInDowntime(data):
if int(data.downtime) > 0:
return True
else:
return False
#CHECK DOWNTIME STATUS
if isInDowntime(data):
exit()
else:
doStuff(data)
You handler should not introduce more toil, it should help to reduce it
Happy Monitoring!
--SN