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": ["Maximum valid value of an input sensor"],
17                    "type": "number"
18                },
19                "MaxValue": {
20                    "description": ["Maximum sensor value"],
21                    "$ref": "legacy.json#/definitions/Types/MaxValue"
22                },
23                "MinValidInput": {
24                    "description": ["Miniumum valid value of an input sensor"],
25                    "type": "number"
26                },
27                "MinValue": {
28                    "description": ["Minimum sensor value"],
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",
55                    "enum": ["ModifiedMedian"]
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            },
65            "required": ["Name", "Sensors", "Type", "Units"]
66        }
67    }
68}
69