initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
14
health/models_interface.py
Normal file
14
health/models_interface.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from abc import ABCMeta, abstractmethod
|
||||
from six import add_metaclass
|
||||
|
||||
|
||||
@add_metaclass(ABCMeta)
|
||||
class HealthCheckDataInterface(object):
|
||||
"""
|
||||
Interface that represents all data store interactions required by health checks.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def check_health(self, app_config):
|
||||
""" Returns True if the connection to the database is healthy and False otherwise. """
|
||||
pass
|
Reference in a new issue