Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 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", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 15 | "$ref": "legacy.json#/definitions/Types/MaxValue" |
| 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", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 23 | "$ref": "legacy.json#/definitions/Types/MinValue" |
| 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", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 37 | "$ref": "legacy.json#/definitions/Types/Thresholds" |
| 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", |
Tao Lin | f7b0b47 | 2022-10-09 09:20:31 +0800 | [diff] [blame] | 42 | "enum": ["ModifiedMedian", "Maximum"] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 43 | }, |
| 44 | "Units": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame^] | 45 | "description": "The sensor type, as it shows up in the D-Bus object name.", |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 46 | "$ref": "legacy.json#/definitions/Types/Units" |
| 47 | } |
| 48 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 49 | "required": ["Name", "Sensors", "Type", "Units"] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 50 | } |
| 51 | } |
| 52 | } |