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/PerformanceLoss.interface.yaml b/xyz/openbmc_project/Sensor/Threshold/PerformanceLoss.interface.yaml
index 343f648..0c6c9e9 100644
--- a/xyz/openbmc_project/Sensor/Threshold/PerformanceLoss.interface.yaml
+++ b/xyz/openbmc_project/Sensor/Threshold/PerformanceLoss.interface.yaml
@@ -44,3 +44,36 @@
PerformanceLossAlarmLow may be set to False to clear an alarm condition.
The behavior of setting PerformanceLossAlarmLow to True is undefined.
+signals:
+ - name: PerformanceLossHighAlarmAsserted
+ description: >
+ The high threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: PerformanceLossHighAlarmDeasserted
+ description: >
+ The high threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: PerformanceLossLowAlarmAsserted
+ description: >
+ The low threshold alarm asserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.
+ - name: PerformanceLossLowAlarmDeasserted
+ description: >
+ The low threshold alarm deasserted.
+ properties:
+ - name: SensorValue
+ type: double
+ description: >
+ The sensor value that triggered the alarm change.