X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fcommon_db.py;h=4f6ace0b667a487638b675e8081c2bc2a7f141b2;hb=refs%2Ftags%2Fv11.0.0;hp=1e78bc8f4c383d86114c79b2857a47e362362550;hpb=3f176d90a43f9e95954111238299a0175fa845b8;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)