diff options
author | Ed Tanous <edtanous@google.com> | 2023-01-23 22:28:10 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-03-02 02:37:27 +0300 |
commit | 5ace29d2665cb70688edca5f9ca9e362958ce6b7 (patch) | |
tree | a46bec4702ee79bc3a952626048a43f5d619858a /Redfish.md | |
parent | e68d1be018a203970377d652005bafa14c4bf2f0 (diff) | |
download | bmcweb-5ace29d2665cb70688edca5f9ca9e362958ce6b7.tar.xz |
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 <edtanous@google.com>
Change-Id: Ie1b82c5150f3374faf0ce376402eba410e59891d
Diffstat (limited to 'Redfish.md')
-rw-r--r-- | Redfish.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 |