| #pragma once |
| |
| #include "dbus_utility.hpp" |
| |
| namespace redfish |
| { |
| |
| namespace telemetry |
| { |
| constexpr const char* service = "xyz.openbmc_project.Telemetry"; |
| constexpr const char* reportInterface = "xyz.openbmc_project.Telemetry.Report"; |
| constexpr const char* metricReportDefinitionUri = |
| "/redfish/v1/TelemetryService/MetricReportDefinitions"; |
| constexpr const char* metricReportUri = |
| "/redfish/v1/TelemetryService/MetricReports"; |
| |
| inline std::string getDbusReportPath(const std::string& id) |
| { |
| sdbusplus::message::object_path reportsPath( |
| "/xyz/openbmc_project/Telemetry/Reports/TelemetryService"); |
| return {reportsPath / id}; |
| } |
| |
| inline std::string getDbusTriggerPath(const std::string& id) |
| { |
| sdbusplus::message::object_path triggersPath( |
| "/xyz/openbmc_project/Telemetry/Triggers/TelemetryService"); |
| return {triggersPath / id}; |
| } |
| |
| } // namespace telemetry |
| } // namespace redfish |