thresholds: Add threshold alarm signals
Define signals on every sensor threshold interface that can be sent when
a threshold alarm value changes. The signal contains the sensor value
that caused the alarm change.
<Threshold Name>HighAlarmAsserted:
* Sent when the Warning/Critical/etc AlarmHigh property is asserted
<Threshold Name>HighAlarmDeasserted:
* Sent when the Warning/Critical/etc AlarmHigh property is deasserted
<Threshold Name>LowAlarmAsserted:
* Sent when the Warning/Critical/etc AlarmLow property is asserted
<Threshold Name>LowAlarmDeasserted:
* Sent when the Warning/Critical/etc AlarmLow property is deasserted
The threshold name, like 'Critical', is in the property name so that the
generated C++ names are unique and a class can implement multiple
thresholds at once.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ib58fccc5fcb71a55a79ac74c0113326bd8e40219
diff --git a/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml b/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
index e4d23ea..4182eca 100644
--- a/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
+++ b/xyz/openbmc_project/Sensor/Threshold/Warning.interface.yaml
@@ -43,3 +43,37 @@
WarningAlarmLow may be set to False to clear an alarm condition.
The behavior of setting WarningAlarmLow to True is undefined.
+
+signals:
+ - name: WarningHighAlarmAsserted
+ description: >
+ The high threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: WarningHighAlarmDeasserted
+ description: >
+ The high threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: WarningLowAlarmAsserted
+ description: >
+ The low threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: WarningLowAlarmDeasserted
+ description: >
+ The low threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.