Small cleanups. (0.25.9)

This commit is contained in:
Johannes Findeisen 2023-08-24 14:44:45 +02:00
commit 54f55574eb
2 changed files with 3 additions and 3 deletions

View file

@ -72,10 +72,9 @@ class Monitor:
NONE job was not executed: -1
OK when everything is fine: 0
WARNING when a job has errors but the threshold is not overridden: 1
RECOVER when a job recovers e.g. the threshold decrements (not implemented): 2
RECOVER when a job recovers e.g. the error count decrements: 2
ERROR when a jobs error threshold is overridden: 3
UNKNOWN when a job throws an exception which is not handled by the job itself (not
implemented): 4
UNKNOWN when a job throws an exception which is not handled by the job itself: 4
"""
try:
notification_list = None

View file

@ -4,6 +4,7 @@ Copyright (c) 2013-2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
See LICENSE.
"""
class Plugin:
def __init__(self, configuration, environment, linspector, log):
self._configuration = configuration