blob: 512ea8569ab212d8b1b0bcc7c8d0aabb41018bc3 [file] [log] [blame]
Rashmica Guptae23af562021-07-29 15:12:16 +10001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "definitions": {
4 "VirtualSensor": {
5 "title": "phosphor-virtual-sensor configuration",
Andrew Jefferybb8aa372024-03-20 11:24:32 +10306 "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 Guptae23af562021-07-29 15:12:16 +10007 "type": "object",
8 "properties": {
9 "MaxValidInput": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103010 "description": "Maximum valid value of an input sensor",
Rashmica Guptae23af562021-07-29 15:12:16 +100011 "type": "number"
12 },
13 "MaxValue": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103014 "description": "Maximum sensor value",
Rashmica Guptae23af562021-07-29 15:12:16 +100015 "$ref": "legacy.json#/definitions/Types/MaxValue"
16 },
17 "MinValidInput": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103018 "description": "Miniumum valid value of an input sensor",
Rashmica Guptae23af562021-07-29 15:12:16 +100019 "type": "number"
20 },
21 "MinValue": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103022 "description": "Minimum sensor value",
Rashmica Guptae23af562021-07-29 15:12:16 +100023 "$ref": "legacy.json#/definitions/Types/MinValue"
24 },
25 "Name": {
26 "type": "string"
27 },
28 "Sensors": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103029 "description": "Any DBus sensors whose values are used to determine the value of the virtual sensor.",
Rashmica Guptae23af562021-07-29 15:12:16 +100030 "items": {
31 "type": "string"
32 },
33 "type": "array"
34 },
35 "Thresholds": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103036 "description": "Threshold values used to set and clear alarms",
Rashmica Guptae23af562021-07-29 15:12:16 +100037 "$ref": "legacy.json#/definitions/Types/Thresholds"
38 },
39 "Type": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103040 "description": "The type of calculation this sensor uses.",
Rashmica Guptae23af562021-07-29 15:12:16 +100041 "type": "string",
Tao Linf7b0b472022-10-09 09:20:31 +080042 "enum": ["ModifiedMedian", "Maximum"]
Rashmica Guptae23af562021-07-29 15:12:16 +100043 },
44 "Units": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103045 "description": "The sensor type, as it shows up in the D-Bus object name.",
Rashmica Guptae23af562021-07-29 15:12:16 +100046 "$ref": "legacy.json#/definitions/Types/Units"
47 }
48 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060049 "required": ["Name", "Sensors", "Type", "Units"]
Rashmica Guptae23af562021-07-29 15:12:16 +100050 }
51 }
52}