X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fmgr%2FMgrPyModule.h;h=6eea29eee24e6abbbd2dcc9e32aeae326f337d7a;hb=c07f9fc5a4f48397831383549fb0482b93480643;hp=14be1566f069512890360b0f03b44080b60937f4;hpb=9439ae556f035e65c9c107ae13ddd09457dbbecd;p=ceph.git diff --git a/ceph/src/mgr/MgrPyModule.h b/ceph/src/mgr/MgrPyModule.h index 14be1566f..6eea29eee 100644 --- a/ceph/src/mgr/MgrPyModule.h +++ b/ceph/src/mgr/MgrPyModule.h @@ -21,6 +21,8 @@ #include "common/cmdparse.h" #include "common/LogEntry.h" +#include "common/Mutex.h" +#include "mon/health_check.h" #include #include @@ -47,6 +49,8 @@ private: PyThreadState *pMainThreadState; PyThreadState *pMyThreadState = nullptr; + health_check_map_t health_checks; + std::vector 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();