X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fcommon_db.py;h=4f6ace0b667a487638b675e8081c2bc2a7f141b2;hb=a3807d877278a41310fbb7561ae2f92f2fee7b93;hp=1e78bc8f4c383d86114c79b2857a47e362362550;hpb=c5bf83e7c59366e0ca0afe94d24f71bcdc123cfc;p=osm%2FMON.git diff --git a/osm_mon/core/common_db.py b/osm_mon/core/common_db.py index 1e78bc8..4f6ace0 100644 --- a/osm_mon/core/common_db.py +++ b/osm_mon/core/common_db.py @@ -165,6 +165,9 @@ class CommonDbClient: def get_project(self, project_id: str): return self.common_db.get_one("projects", {"_id": project_id}) + def get_k8sclusters(self): + return self.common_db.get_list("k8sclusters") + def create_alarm(self, alarm: Alarm): action_data = {"uuid": alarm.uuid, "action": alarm.action} self.common_db.create("alarms_action", action_data)