Add sdl healthcheck to a1's healthcheck
[ric-plt/a1.git] / a1 / data.py
index 300f19d..d537d54 100644 (file)
@@ -68,6 +68,10 @@ class SDLWrapper:
         """ delete a key"""
         self.sdl.remove(A1NS, {key})
 
+    def healthcheck(self):
+        """checks if the sdl connection is healthy"""
+        return self.sdl.is_active()
+
 
 SDL = SDLWrapper()