Renamed dummy database module to "none". (0.25.3)
This commit is contained in:
parent
3cb15dea3d
commit
b50946b097
2 changed files with 5 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ from linspector.environment import Environment
|
||||||
from linspector.linspector import Linspector
|
from linspector.linspector import Linspector
|
||||||
from linspector.monitors import Monitors
|
from linspector.monitors import Monitors
|
||||||
|
|
||||||
__version__ = '0.25.2'
|
__version__ = '0.25.3'
|
||||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,15 @@ from linspector.database import Database
|
||||||
|
|
||||||
|
|
||||||
def create(configuration, environment, log):
|
def create(configuration, environment, log):
|
||||||
return DummyDBDatabase(configuration, environment, log)
|
return NoneDatabase(configuration, environment, log)
|
||||||
|
|
||||||
|
|
||||||
class DummyDBDatabase(Database):
|
class NoneDatabase(Database):
|
||||||
"""
|
"""
|
||||||
This is a dummy database module to make sure all monitors can work without errors even when no
|
This is a dummy database module to make sure all monitors can work without errors even when no
|
||||||
database is configured. It should always be loaded or only if no other database is selected.
|
database is configured. It should always be loaded or only if no other database is selected.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def insert(self, host, identifier, json, message, service, status, timestamp):
|
@staticmethod
|
||||||
|
def insert(host, identifier, json, message, service, status, timestamp):
|
||||||
pass
|
pass
|
||||||
Loading…
Add table
Add a link
Reference in a new issue