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/PeerChecker.py | |
parent | 50111ca74eaa5b14253814a9aa39e35b40480935 (diff) |
Create an option that lets you require two failures before alerting.
Diffstat (limited to 'jobs/PeerChecker.py')
-rwxr-xr-x | jobs/PeerChecker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jobs/PeerChecker.py b/jobs/PeerChecker.py index 1214b0f..7832b25 100755 --- a/jobs/PeerChecker.py +++ b/jobs/PeerChecker.py @@ -23,6 +23,8 @@ class PeerChecker(JobSpawner.JobSpawner): return JobBase.JobFrequency.HOUR
def notifyOnFailureEvery(self):
return JobBase.JobFailureNotificationFrequency.EVERYTIME
+ def numberFailuresBeforeNotification(self):
+ return JobBase.JobFailureCountMinimumBeforeNotification.ONE
def execute(self):
peerOK = False
|