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": {
16                    "description": [
17                        "Maximum valid value of an input sensor"
18                    ],
19                    "type": "number"
20                },
21                "MaxValue": {
22                    "description": [
23                        "Maximum sensor value"
24                    ],
25                    "$ref": "legacy.json#/definitions/Types/MaxValue"
26                },
27                "MinValidInput": {
28                    "description": [
29                        "Miniumum valid value of an input sensor"
30                    ],
31                    "type": "number"
32                },
33                "MinValue": {
34                    "description": [
35                        "Minimum sensor value"
36                    ],
37                    "$ref": "legacy.json#/definitions/Types/MinValue"
38                },
39                "Name": {
40                    "type": "string"
41                },
42                "Sensors": {
43                    "description": [
44                        "Any DBus sensors whose values are used to",
45                        "determine the value of the virtual sensor."
46                    ],
47                    "items": {
48                        "type": "string"
49                    },
50                    "type": "array"
51                },
52                "Thresholds": {
53                    "description": [
54                        "Threshold values used to set and clear alarms"
55                    ],
56                    "$ref": "legacy.json#/definitions/Types/Thresholds"
57                },
58                "Type": {
59                    "description": [
60                        "The type of calculation this sensor uses."
61                    ],
62                    "type": "string",
63                    "enum": [
64                        "ModifiedMedian"
65                    ]
66                },
67                "Units": {
68                    "description": [
69                        "The sensor type, as it shows up in the D-Bus",
70                        "object name."
71                    ],
72                    "$ref": "legacy.json#/definitions/Types/Units"
73                }
74            },
75            "required": [
76                "Name",
77                "Sensors",
78                "Type",
79                "Units"
80            ]
81        }
82    }
83}
84