]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/MgrPyModule.h
update sources to v12.1.2
[ceph.git] / ceph / src / mgr / MgrPyModule.h
index 14be1566f069512890360b0f03b44080b60937f4..6eea29eee24e6abbbd2dcc9e32aeae326f337d7a 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "common/cmdparse.h"
 #include "common/LogEntry.h"
+#include "common/Mutex.h"
+#include "mon/health_check.h"
 
 #include <vector>
 #include <string>
@@ -47,6 +49,8 @@ private:
   PyThreadState *pMainThreadState;
   PyThreadState *pMyThreadState = nullptr;
 
+  health_check_map_t health_checks;
+
   std::vector<ModuleCommand> commands;
 
   int load_commands();
@@ -75,6 +79,11 @@ public:
     const cmdmap_t &cmdmap,
     std::stringstream *ds,
     std::stringstream *ss);
+
+  void set_health_checks(health_check_map_t&& c) {
+    health_checks = std::move(c);
+  }
+  void get_health_checks(health_check_map_t *checks);
 };
 
 std::string handle_pyerror();