#pragma once #include #include #include #include #include #include #include namespace redfish { /** * handleManagerDiagnosticData supports ManagerDiagnosticData. * It retrieves BMC health information from various DBus resources and returns * the information through the response. */ inline void handleManagerDiagnosticDataGet( crow::App& app, const crow::Request& req, const std::shared_ptr& asyncResp) { if (!redfish::setUpRedfishRoute(app, req, asyncResp)) { return; } asyncResp->res.jsonValue["@odata.type"] = "#ManagerDiagnosticData.v1_0_0.ManagerDiagnosticData"; asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Managers/bmc/ManagerDiagnosticData"; asyncResp->res.jsonValue["Id"] = "ManagerDiagnosticData"; asyncResp->res.jsonValue["Name"] = "Manager Diagnostic Data"; } inline void requestRoutesManagerDiagnosticData(App& app) { BMCWEB_ROUTE(app, "/redfish/v1/Managers/bmc/ManagerDiagnosticData") .privileges(redfish::privileges::getManagerDiagnosticData) .methods(boost::beast::http::verb::get)( std::bind_front(handleManagerDiagnosticDataGet, std::ref(app))); } } // namespace redfish