From e0c06d7cafe50b6198e102ae0554f1cb6df8cf0a Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Mon, 9 Jul 2018 11:15:21 -0500 Subject: Add LastStateChangeTime property to State.Chassis This holds the timestamp of when the chassis power state last changed. This will be used by the web UI to show the user when their system was last powered on or off. Change-Id: I801cd40e2e7d8ee18ede132be59f0776f5fc9d1f Signed-off-by: Matt Spinler --- xyz/openbmc_project/State/Chassis.interface.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xyz/openbmc_project') diff --git a/xyz/openbmc_project/State/Chassis.interface.yaml b/xyz/openbmc_project/State/Chassis.interface.yaml index 42c8f71..4ae6274 100644 --- a/xyz/openbmc_project/State/Chassis.interface.yaml +++ b/xyz/openbmc_project/State/Chassis.interface.yaml @@ -16,6 +16,14 @@ properties: A user can determine if a chassis is in transition by comparing the CurrentPowerState and RequestedPowerTransition properties. + - name: LastStateChangeTime + type: uint64 + description: > + The last time at which the chassis power changed state, as + tracked by the CurrentPowerState property, in epoch time, + in milliseconds. This can be used to tell when the chassis + was last powered on or off. + enumerations: - name: Transition description: > -- cgit v1.2.1