blob: 3584489acfcd0c7a752cb8cd8d5532e597850ec9 [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",
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 Williamsfa8ee872022-12-07 07:00:42 -060016 "description": ["Maximum valid value of an input sensor"],
Rashmica Guptae23af562021-07-29 15:12:16 +100017 "type": "number"
18 },
19 "MaxValue": {
Patrick Williamsfa8ee872022-12-07 07:00:42 -060020 "description": ["Maximum sensor value"],
Rashmica Guptae23af562021-07-29 15:12:16 +100021 "$ref": "legacy.json#/definitions/Types/MaxValue"
22 },
23 "MinValidInput": {
Patrick Williamsfa8ee872022-12-07 07:00:42 -060024 "description": ["Miniumum valid value of an input sensor"],
Rashmica Guptae23af562021-07-29 15:12:16 +100025 "type": "number"
26 },
27 "MinValue": {
Patrick Williamsfa8ee872022-12-07 07:00:42 -060028 "description": ["Minimum sensor value"],
Rashmica Guptae23af562021-07-29 15:12:16 +100029 "$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 Williamsfa8ee872022-12-07 07:00:42 -060055 "enum": ["ModifiedMedian"]
Rashmica Guptae23af562021-07-29 15:12:16 +100056 },
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 Williamsfa8ee872022-12-07 07:00:42 -060065 "required": ["Name", "Sensors", "Type", "Units"]
Rashmica Guptae23af562021-07-29 15:12:16 +100066 }
67 }
68}