Add High/Low alarm properties to sensor thresholds
Eliminate the need to discover which threshold has been exceeded.
Change-Id: Ib3f85789287e227e6601a6ae1e276fd9e6ccf44d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml b/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
index f8ef993..9f4822b 100644
--- a/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
+++ b/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
@@ -23,13 +23,21 @@
type: int64
description: >
The lower bound of the warning threshold.
- - name: WarningAlarm
+ - name: WarningAlarmHigh
type: boolean
description: >
- True if the sensor value has exceeded the defined bounds.
- False if the sensor value has not exceeded the defined bounds.
+ True if the sensor value has exceeded the defined bound.
+ False if the sensor value has not exceeded the defined bound.
- WarningAlarm may be set to False to clear an alarm condition.
- The behavior of setting WarningAlarm to True is undefined.
+ WarningAlarmHigh may be set to False to clear an alarm condition.
+ The behavior of setting WarningAlarmHigh to True is undefined.
+ - name: WarningAlarmLow
+ type: boolean
+ description: >
+ True if the sensor value has exceeded the defined bound.
+ False if the sensor value has not exceeded the defined bound.
+
+ WarningAlarmLow may be set to False to clear an alarm condition.
+ The behavior of setting WarningAlarmLow to True is undefined.
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4