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/SoftShutdown.interface.yaml b/xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml
index 24a4d60..52b0f54 100644
--- a/xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml
+++ b/xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml
@@ -44,3 +44,37 @@
SoftShutdownAlarmLow may be set to False to clear an alarm condition.
The behavior of setting SoftShutdownAlarmLow to True is undefined.
+
+signals:
+ - name: SoftShutdownHighAlarmAsserted
+ description: >
+ The high threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: SoftShutdownHighAlarmDeasserted
+ description: >
+ The high threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: SoftShutdownLowAlarmAsserted
+ description: >
+ The low threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: SoftShutdownLowAlarmDeasserted
+ description: >
+ The low threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.