sensor events: add internal threshold level events
In certain scenarios, the threshold monitoring is done internally by the
hardware and no thresholds values are available for the software to
consume. In such scenarios, add internal level based events as per
Redfish SensorEvent schema [1].
[1] https://github.com/DMTF/Redfish-Publications/blob/main/registries/SensorEvent.1.0.1.json#L306
Change-Id: I61c9375b6fd0347084f08e770b86c349a1eecabb
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Sensor/Threshold.events.yaml b/yaml/xyz/openbmc_project/Sensor/Threshold.events.yaml
index 00c8d31..db930d6 100644
--- a/yaml/xyz/openbmc_project/Sensor/Threshold.events.yaml
+++ b/yaml/xyz/openbmc_project/Sensor/Threshold.events.yaml
@@ -1,4 +1,4 @@
-version: 1.0.1
+version: 1.1.0
errors:
- name: InvalidSensorReading
@@ -363,6 +363,60 @@
primary: true
redfish-mapping: SensorEvent.ReadingBelowFatalThreshold
+ - name: ReadingWarning
+ severity: warning
+ errno: ERANGE
+ metadata:
+ - name: SensorName
+ description: The name or identifier of the sensor.
+ type: object_path
+ primary: true
+ - name: ReadingValue
+ description: The reading of the sensor.
+ type: double
+ primary: true
+ - name: Units
+ description: The reading units of measure.
+ type: enum[xyz.openbmc_project.Sensor.Value.Unit]
+ primary: true
+ redfish-mapping: SensorEvent.ReadingWarning
+
+ - name: ReadingCritical
+ severity: critical
+ errno: ERANGE
+ metadata:
+ - name: SensorName
+ description: The name or identifier of the sensor.
+ type: object_path
+ primary: true
+ - name: ReadingValue
+ description: The reading of the sensor.
+ type: double
+ primary: true
+ - name: Units
+ description: The reading units of measure.
+ type: enum[xyz.openbmc_project.Sensor.Value.Unit]
+ primary: true
+ redfish-mapping: SensorEvent.ReadingCritical
+
+ - name: ReadingNoLongerCritical
+ severity: warning
+ errno: ERANGE
+ metadata:
+ - name: SensorName
+ description: The name or identifier of the sensor.
+ type: object_path
+ primary: true
+ - name: ReadingValue
+ description: The reading of the sensor.
+ type: double
+ primary: true
+ - name: Units
+ description: The reading units of measure.
+ type: enum[xyz.openbmc_project.Sensor.Value.Unit]
+ primary: true
+ redfish-mapping: SensorEvent.ReadingNoLongerCritical
+
- name: SensorFailure
severity: critical
errno: EIO