diff options
author | Tom <tom@ritter.vg> | 2016-12-28 13:59:43 -0600 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2016-12-28 14:37:55 -0600 |
commit | 3e85f1d0d48f0fb65a83af6ce3fb4b6a08f0bb1a (patch) | |
tree | 43367c6c5c98bf31759e576bcf43efabd4772e57 /jobs/EmailChecker.py | |
parent | 50111ca74eaa5b14253814a9aa39e35b40480935 (diff) |
Create an option that lets you require two failures before alerting.
Diffstat (limited to 'jobs/EmailChecker.py')
-rwxr-xr-x | jobs/EmailChecker.py | 2 |
1 files changed, 2 insertions, 0 deletions
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.") |