Mostly cleanups and a TODO update.

This commit is contained in:
Johannes Findeisen 2022-10-01 09:14:42 +02:00
commit 60752e1a4b
3 changed files with 3 additions and 8 deletions

View file

@ -11,4 +11,5 @@ Things to do in no particular order:
- Add more tasks e.g. storage in mongodb or mariadb and some more notifications like XMPP and SMS
- Check for all required configuration options and set defaults in services.
- Write documentation and inline documentation.
- Add kwargs ro notifications, tasks and maybe plugins.
- Add kwargs to notifications, tasks and maybe plugins.
- Add date and cron based scheduling to linspector.py to make the full use of APScheduler.

View file

@ -34,7 +34,7 @@ from linspector.core.monitors import Monitors
# i currently only set the 3rd number because the goal is that 0.19 will become the first stable
# version.
__version__ = '0.19.15.dev1'
__version__ = '0.19.16.dev1'
__author__ = 'Johannes Findeisen <you@hanez.org>'
logger = logging.getLogger('linspector')

View file

@ -15,7 +15,6 @@ from linspector.core.helpers import log
def job_function(monitor):
#log('debug', monitor)
monitor.handle_call()
@ -70,11 +69,6 @@ class Linspector:
else:
time_delta = round(random.uniform(0.00, 60.00), 2)
#x = monitors.get(monitor).get_monitor_configuration_option('args', 'start_date')
#y = x.get_monitor_configuration_option('args', 'start_date')
#z = y.get_option('args', 'start_date')
#a =
#print(x)
if monitors.get(monitor).get_monitor_configuration_option('args', 'start_date'):
new_start_date = \
monitors.get(monitor).get_monitor_configuration_option('args', 'start_date')