1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "definitions": { 4 "VirtualSensor": { 5 "title": "phosphor-virtual-sensor configuration", 6 "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.", 7 "type": "object", 8 "properties": { 9 "MaxValidInput": { 10 "description": "Maximum valid value of an input sensor", 11 "type": "number" 12 }, 13 "MaxValue": { 14 "description": "Maximum sensor value", 15 "$ref": "legacy.json#/definitions/Types/MaxValue" 16 }, 17 "MinValidInput": { 18 "description": "Miniumum valid value of an input sensor", 19 "type": "number" 20 }, 21 "MinValue": { 22 "description": "Minimum sensor value", 23 "$ref": "legacy.json#/definitions/Types/MinValue" 24 }, 25 "Name": { 26 "type": "string" 27 }, 28 "Sensors": { 29 "description": "Any DBus sensors whose values are used to determine the value of the virtual sensor.", 30 "items": { 31 "type": "string" 32 }, 33 "type": "array" 34 }, 35 "Thresholds": { 36 "description": "Threshold values used to set and clear alarms", 37 "$ref": "legacy.json#/definitions/Types/Thresholds" 38 }, 39 "Type": { 40 "description": "The type of calculation this sensor uses.", 41 "type": "string", 42 "enum": ["Maximum", "Minimum", "ModifiedMedian"] 43 }, 44 "Units": { 45 "description": "The sensor type, as it shows up in the D-Bus object name.", 46 "$ref": "legacy.json#/definitions/Types/Units" 47 } 48 }, 49 "required": ["Name", "Sensors", "Type", "Units"] 50 } 51 } 52} 53