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