complete easy endpoints

This commit is contained in:
2021-11-11 18:52:56 +01:00
parent 58c8708467
commit 8bff435ef3
6 changed files with 172 additions and 5 deletions

17
src/healthchecks.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
from redis_client import redis_client
"""
Healthchek functions
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2021, KMLabz Team"
__module_name__ = "healthchecks"
__version__text__ = "1"
def redis_available():
redisstatus = redis_client.info()
return True, redisstatus