From 5ace29d2665cb70688edca5f9ca9e362958ce6b7 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 23 Jan 2023 11:28:10 -0800 Subject: Implement ManagerDiagnosticData/ServiceRootUptimeSeconds This property was added in Redfish 2022.2 to denote how long this service has been up and available. This implementation opts to go to systemd to get the bmcweb service uptime rather than track it through internal process state, given that systemd already has an API that tracks the bmcweb uptime, and bmcweb attempts to keep as little state as possible. Given that we already have helper functions that give durations in milliseconds precision, this patchset opts to keep the millisecond granularity, rather than dropping to microsecond precision of the systemd API. There are no use cases that would require microsecond precision, so this patchset opts for lower complexity. Tested: Redfish service validator passes. GET /redfish/v1/Managers/bmc/ManagerDiagnosticData Returns a ServiceRootUptime property. Value matches systemctl status bmcweb. systemctl restart bmcweb, causes counter to reset. Signed-off-by: Ed Tanous Change-Id: Ie1b82c5150f3374faf0ce376402eba410e59891d --- Redfish.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index 3bb95ca26e..29b6b87b75 100644 --- a/Redfish.md +++ b/Redfish.md @@ -521,6 +521,12 @@ other. - Created - EntryType +### /redfish/v1/Managers/bmc/ManagerDiagnosticData/ + +#### ManagerDiagnosticData + +- ServiceRootUptimeSeconds + ### /redfish/v1/Managers/bmc/NetworkProtocol/ #### ManagerNetworkProtocol -- cgit v1.2.3