Feature 10965 Airflow monitoring pipeline for VIM status
[osm/NG-SA.git] / src / osm_mon / vim_connectors / gcp.py
index 6c7b557..396e136 100644 (file)
@@ -90,3 +90,14 @@ class GcpCollector(VIMConnector):
         except Exception as e:
             log.error(e)
         return servers
+
+    def is_vim_ok(self) -> bool:
+        status = False
+        try:
+            self.conn_compute.zones().get(
+                project=self.project, zone=self.zone
+            ).execute()
+            status = True
+        except Exception as e:
+            log.error(e)
+        return status