From 3e85f1d0d48f0fb65a83af6ce3fb4b6a08f0bb1a Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 28 Dec 2016 13:59:43 -0600 Subject: Create an option that lets you require two failures before alerting. --- jobs/EmailChecker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jobs/EmailChecker.py') diff --git a/jobs/EmailChecker.py b/jobs/EmailChecker.py index 818600d..74b41d9 100755 --- a/jobs/EmailChecker.py +++ b/jobs/EmailChecker.py @@ -14,6 +14,8 @@ class EmailChecker(JobBase.JobBase): return JobBase.JobFrequency.HOUR def notifyOnFailureEvery(self): return JobBase.JobFailureNotificationFrequency.EVERYTIME + def numberFailuresBeforeNotification(self): + return JobBase.JobFailureCountMinimumBeforeNotification.ONE def execute(self): if self.config.getboolean('email', 'nomail'): logging.debug("Pretending the EmailChecker job succeeded.") -- cgit v1.2.3