blob: 76ffe960466d698209bb52365d6e140b764bb0ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#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)
{
std::string path =
"/xyz/openbmc_project/Telemetry/Reports/TelemetryService/" + id;
dbus::utility::escapePathForDbus(path);
return path;
}
} // namespace telemetry
} // namespace redfish
|