Small cleanups. (0.25.9)
This commit is contained in:
parent
458816e57f
commit
54f55574eb
2 changed files with 3 additions and 3 deletions
|
|
@ -72,10 +72,9 @@ class Monitor:
|
||||||
NONE job was not executed: -1
|
NONE job was not executed: -1
|
||||||
OK when everything is fine: 0
|
OK when everything is fine: 0
|
||||||
WARNING when a job has errors but the threshold is not overridden: 1
|
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
|
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
|
UNKNOWN when a job throws an exception which is not handled by the job itself: 4
|
||||||
implemented): 4
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
notification_list = None
|
notification_list = None
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ Copyright (c) 2013-2023 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
||||||
See LICENSE.
|
See LICENSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class Plugin:
|
class Plugin:
|
||||||
def __init__(self, configuration, environment, linspector, log):
|
def __init__(self, configuration, environment, linspector, log):
|
||||||
self._configuration = configuration
|
self._configuration = configuration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue