1 #pragma once 2 3 #include "dbus_utility.hpp" 4 5 namespace redfish 6 { 7 8 namespace telemetry 9 { 10 11 constexpr const char* service = "xyz.openbmc_project.Telemetry"; 12 constexpr const char* reportInterface = "xyz.openbmc_project.Telemetry.Report"; 13 constexpr const char* metricReportDefinitionUri = 14 "/redfish/v1/TelemetryService/MetricReportDefinitions"; 15 constexpr const char* metricReportUri = 16 "/redfish/v1/TelemetryService/MetricReports"; 17 18 inline std::string getDbusReportPath(const std::string& id) 19 { 20 std::string path = 21 "/xyz/openbmc_project/Telemetry/Reports/TelemetryService/" + id; 22 dbus::utility::escapePathForDbus(path); 23 return path; 24 } 25 26 } // namespace telemetry 27 } // namespace redfish 28