1 #pragma once 2 3 #include "dbus_utility.hpp" 4 #include "utility.hpp" 5 6 namespace redfish 7 { 8 9 namespace telemetry 10 { 11 constexpr const char* service = "xyz.openbmc_project.Telemetry"; 12 constexpr const char* reportInterface = "xyz.openbmc_project.Telemetry.Report"; 13 14 inline std::string getDbusReportPath(const std::string& id) 15 { 16 sdbusplus::message::object_path reportsPath( 17 "/xyz/openbmc_project/Telemetry/Reports/TelemetryService"); 18 return {reportsPath / id}; 19 } 20 21 inline std::string getDbusTriggerPath(const std::string& id) 22 { 23 sdbusplus::message::object_path triggersPath( 24 "/xyz/openbmc_project/Telemetry/Triggers/TelemetryService"); 25 return {triggersPath / id}; 26 } 27 28 } // namespace telemetry 29 } // namespace redfish 30