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/Critical.interface.yaml b/xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml
index 548feb5..c575bb5 100644
--- a/xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml
+++ b/xyz/openbmc_project/Sensor/Threshold/Critical.interface.yaml
@@ -22,14 +22,22 @@
type: int64
description: >
The lower bound of the critical threshold.
- - name: CriticalAlarm
+ - name: CriticalAlarmHigh
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.
- CriticalAlarm may be set to False to clear an alarm condition.
- The behavior of setting CriticalAlarm to True is undefined.
+ CriticalAlarmHigh may be set to False to clear an alarm condition.
+ The behavior of setting CriticalAlarmHigh to True is undefined.
+ - name: CriticalAlarmLow
+ type: boolean
+ description: >
+ True if the sensor value has exceeded the defined bound.
+ False if the sensor value has not exceeded the defined bound.
+
+ CriticalAlarmLow may be set to False to clear an alarm condition.
+ The behavior of setting CriticalAlarmLow to True is undefined.
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
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