From 07148cf2fcaf7c255fe6a21acd4e7b2134fb1d92 Mon Sep 17 00:00:00 2001 From: Lukasz Kazmierczak Date: Mon, 2 Aug 2021 11:08:53 +0200 Subject: Add GET method for TriggerCollection Added GET method for retrieving list of Triggers from Telemetry service Tested: - Added single Trigger and requested result from bmcweb via /redfish/v1/TelemetryService/Triggers - Added multiple Triggers numeric and discrete, and requested results from bmcweb via /redfish/v1/TelemetryService/Triggers - Verified uri /redfish/v1/TelemetryService/Triggers by using Redfish-Service-Validator with no Triggers/empty Collection (passed) Signed-off-by: Lukasz Kazmierczak Change-Id: Ide00eb44901ea1b97b80fc5c5ddfd97e393d4a04 --- redfish-core/include/redfish.hpp | 2 ++ redfish-core/include/utils/telemetry_utils.hpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'redfish-core/include') diff --git a/redfish-core/include/redfish.hpp b/redfish-core/include/redfish.hpp index 247933232e..e56996dad4 100644 --- a/redfish-core/include/redfish.hpp +++ b/redfish-core/include/redfish.hpp @@ -41,6 +41,7 @@ #include "../lib/task.hpp" #include "../lib/telemetry_service.hpp" #include "../lib/thermal.hpp" +#include "../lib/trigger.hpp" #include "../lib/update_service.hpp" #include "../lib/virtual_media.hpp" @@ -206,6 +207,7 @@ class RedfishService requestRoutesMetricReportDefinition(app); requestRoutesMetricReportCollection(app); requestRoutesMetricReport(app); + requestRoutesTriggerCollection(app); } }; diff --git a/redfish-core/include/utils/telemetry_utils.hpp b/redfish-core/include/utils/telemetry_utils.hpp index 76ffe96046..c16cc89073 100644 --- a/redfish-core/include/utils/telemetry_utils.hpp +++ b/redfish-core/include/utils/telemetry_utils.hpp @@ -7,7 +7,6 @@ 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 = -- cgit v1.2.3