Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
Patrick Williams | 7d6080d | 2024-09-04 12:54:45 -0400 | [diff] [blame] | 3 | "$defs": { |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 4 | "VirtualSensor": { |
| 5 | "title": "phosphor-virtual-sensor configuration", |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 6 | "description": "The configuration used by the virtual-sensor daemon in the phosphor-virtual-sensor repository. Virtual sensors are xyz.openbmc_project.Sensor.Value D-Bus objects that have sensor values calculated from the D-Bus sensors listed here.", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "MaxValidInput": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 10 | "description": "Maximum valid value of an input sensor", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 11 | "type": "number" |
| 12 | }, |
| 13 | "MaxValue": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 14 | "description": "Maximum sensor value", |
Patrick Williams | 7d6080d | 2024-09-04 12:54:45 -0400 | [diff] [blame] | 15 | "$ref": "legacy.json#/$defs/Types/MaxValue" |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 16 | }, |
| 17 | "MinValidInput": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 18 | "description": "Miniumum valid value of an input sensor", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 19 | "type": "number" |
| 20 | }, |
| 21 | "MinValue": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 22 | "description": "Minimum sensor value", |
Patrick Williams | 7d6080d | 2024-09-04 12:54:45 -0400 | [diff] [blame] | 23 | "$ref": "legacy.json#/$defs/Types/MinValue" |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 24 | }, |
| 25 | "Name": { |
| 26 | "type": "string" |
| 27 | }, |
| 28 | "Sensors": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 29 | "description": "Any DBus sensors whose values are used to determine the value of the virtual sensor.", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 30 | "items": { |
| 31 | "type": "string" |
| 32 | }, |
| 33 | "type": "array" |
| 34 | }, |
| 35 | "Thresholds": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 36 | "description": "Threshold values used to set and clear alarms", |
Patrick Williams | 7d6080d | 2024-09-04 12:54:45 -0400 | [diff] [blame] | 37 | "$ref": "legacy.json#/$defs/Types/Thresholds" |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 38 | }, |
| 39 | "Type": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 40 | "description": "The type of calculation this sensor uses.", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 41 | "type": "string", |
George Liu | ae36f5e | 2024-09-19 15:43:04 +0800 | [diff] [blame] | 42 | "enum": [ |
| 43 | "Average", |
| 44 | "Maximum", |
| 45 | "Minimum", |
| 46 | "Sum", |
| 47 | "ModifiedMedian" |
| 48 | ] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 49 | }, |
| 50 | "Units": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 51 | "description": "The sensor type, as it shows up in the D-Bus object name.", |
Patrick Williams | 7d6080d | 2024-09-04 12:54:45 -0400 | [diff] [blame] | 52 | "$ref": "legacy.json#/$defs/Types/Units" |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 53 | } |
| 54 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 55 | "required": ["Name", "Sensors", "Type", "Units"] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 56 | } |
| 57 | } |
| 58 | } |