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", |
| 6 | "description": [ |
| 7 | "The configuration used by the virtual-sensor daemon", |
| 8 | "in the phosphor-virtual-sensor repository. Virtual", |
| 9 | "sensors are xyz.openbmc_project.Sensor.Value D-Bus", |
| 10 | "objects that have sensor values calculated from the", |
| 11 | "D-Bus sensors listed here." |
| 12 | ], |
| 13 | "type": "object", |
| 14 | "properties": { |
| 15 | "MaxValidInput": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 16 | "description": ["Maximum valid value of an input sensor"], |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 17 | "type": "number" |
| 18 | }, |
| 19 | "MaxValue": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 20 | "description": ["Maximum sensor value"], |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 21 | "$ref": "legacy.json#/definitions/Types/MaxValue" |
| 22 | }, |
| 23 | "MinValidInput": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 24 | "description": ["Miniumum valid value of an input sensor"], |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 25 | "type": "number" |
| 26 | }, |
| 27 | "MinValue": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 28 | "description": ["Minimum sensor value"], |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 29 | "$ref": "legacy.json#/definitions/Types/MinValue" |
| 30 | }, |
| 31 | "Name": { |
| 32 | "type": "string" |
| 33 | }, |
| 34 | "Sensors": { |
| 35 | "description": [ |
| 36 | "Any DBus sensors whose values are used to", |
| 37 | "determine the value of the virtual sensor." |
| 38 | ], |
| 39 | "items": { |
| 40 | "type": "string" |
| 41 | }, |
| 42 | "type": "array" |
| 43 | }, |
| 44 | "Thresholds": { |
| 45 | "description": [ |
| 46 | "Threshold values used to set and clear alarms" |
| 47 | ], |
| 48 | "$ref": "legacy.json#/definitions/Types/Thresholds" |
| 49 | }, |
| 50 | "Type": { |
| 51 | "description": [ |
| 52 | "The type of calculation this sensor uses." |
| 53 | ], |
| 54 | "type": "string", |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 55 | "enum": ["ModifiedMedian"] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 56 | }, |
| 57 | "Units": { |
| 58 | "description": [ |
| 59 | "The sensor type, as it shows up in the D-Bus", |
| 60 | "object name." |
| 61 | ], |
| 62 | "$ref": "legacy.json#/definitions/Types/Units" |
| 63 | } |
| 64 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame^] | 65 | "required": ["Name", "Sensors", "Type", "Units"] |
Rashmica Gupta | e23af56 | 2021-07-29 15:12:16 +1000 | [diff] [blame] | 66 | } |
| 67 | } |
| 68 | } |