summaryrefslogtreecommitdiff
path: root/redfish-core/include/utils
diff options
context:
space:
mode:
authorLukasz Kazmierczak <lukasz.kazmierczak@intel.com>2021-12-17 15:02:23 +0300
committerEd Tanous <ed@tanous.net>2023-07-31 19:05:29 +0300
commit9e6c388a003d707136e26523dae84ba434695028 (patch)
tree710fbd2d9c24360c47da4b91158dfced97fe69a0 /redfish-core/include/utils
parent32c99a2e37d61b65cb56cfd1c7b22eb28ea539a6 (diff)
downloadbmcweb-9e6c388a003d707136e26523dae84ba434695028.tar.xz
Add PATCH for MetricReportDefinition
Support for PATCH method is added to Metric Report Definition, now selected read/write Report properties can be modified by PATCH method Tested: - Added Report via POST, overwrite editable properties via PATCH and fetched Report via GET checking if received data is properly modified Signed-off-by: Lukasz Kazmierczak <lukasz.kazmierczak@intel.com> Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: If75110a92c55c9e4f2415f0ed4471baa802643ff
Diffstat (limited to 'redfish-core/include/utils')
-rw-r--r--redfish-core/include/utils/telemetry_utils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/include/utils/telemetry_utils.hpp b/redfish-core/include/utils/telemetry_utils.hpp
index 33e31f0af4..c5c88fa4e5 100644
--- a/redfish-core/include/utils/telemetry_utils.hpp
+++ b/redfish-core/include/utils/telemetry_utils.hpp
@@ -20,14 +20,14 @@ namespace telemetry
constexpr const char* service = "xyz.openbmc_project.Telemetry";
constexpr const char* reportInterface = "xyz.openbmc_project.Telemetry.Report";
-inline std::string getDbusReportPath(const std::string& id)
+inline std::string getDbusReportPath(std::string_view id)
{
sdbusplus::message::object_path reportsPath(
"/xyz/openbmc_project/Telemetry/Reports/TelemetryService");
return {reportsPath / id};
}
-inline std::string getDbusTriggerPath(const std::string& id)
+inline std::string getDbusTriggerPath(std::string_view id)
{
sdbusplus::message::object_path triggersPath(
"/xyz/openbmc_project/Telemetry/Triggers/TelemetryService");