summaryrefslogtreecommitdiff
path: root/redfish-core/lib/service_root.hpp
diff options
context:
space:
mode:
authorWludzik, Jozef <jozef.wludzik@intel.com>2020-04-27 18:24:15 +0300
committerEd Tanous <ed@tanous.net>2021-02-09 20:14:30 +0300
commit081ebf06b4c947e828408029273699ff2d49a54f (patch)
tree73a97ed2c6ad1dff843ac860c07e44bf0e90b087 /redfish-core/lib/service_root.hpp
parenteaa96da3f862bf814ac7147a8a87fd3eaa97731b (diff)
downloadbmcweb-081ebf06b4c947e828408029273699ff2d49a54f.tar.xz
Redfish TelemetryService schema implementation
Now user is able to communicate with Telemetry service using Redfish. Added TelemetryService, MetricReports, MetricReportCollection, MetricReportDefinition and MetricReportDefinitionCollection nodes with GET method support. Added TelemetryService URI to root service. Implemented communication with backend - Telemetry: https://github.com/openbmc/telemetry Added schemes attributes that are supported by Telemetry service design, ref.: https://github.com/openbmc/docs/blob/master/designs/telemetry.md Change introduces function that converts decimal value into duration format that is described by ISO 8601 and Redfish specification. Tested: - Tested using romulus and s2600wf images on QEMU - Verified DBus method calls to Telemetry service from bmcweb - Verified bmcweb responses from new nodes in different cases: - Report collection is empty - Report collection is filled with artificial data - Telemetry service is disabled - Verified time_utils::toDurationString() output - Passed RedfishServiceValidator.py Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com> Signed-off-by: Adrian Ambrożewicz <adrian.ambrozewicz@linux.intel.com> Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: Ie6b0b49f4ef5eeaef07d1209b6c349270c04d570
Diffstat (limited to 'redfish-core/lib/service_root.hpp')
-rw-r--r--redfish-core/lib/service_root.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/redfish-core/lib/service_root.hpp b/redfish-core/lib/service_root.hpp
index 629280c5ec..3df5ec5ddb 100644
--- a/redfish-core/lib/service_root.hpp
+++ b/redfish-core/lib/service_root.hpp
@@ -68,6 +68,8 @@ class ServiceRoot : public Node
res.jsonValue["Tasks"] = {{"@odata.id", "/redfish/v1/TaskService"}};
res.jsonValue["EventService"] = {
{"@odata.id", "/redfish/v1/EventService"}};
+ res.jsonValue["TelemetryService"] = {
+ {"@odata.id", "/redfish/v1/TelemetryService"}};
res.end();
}