blob: 8aeff0d2e475db1a9391331f959792248db7ee8b [file] [log] [blame]
#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