1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "$defs": { 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#/$defs/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#/$defs/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#/$defs/Types/Thresholds" 38 }, 39 "Type": { 40 "description": "The type of calculation this sensor uses.", 41 "type": "string", 42 "enum": [ 43 "Average", 44 "Maximum", 45 "Minimum", 46 "Sum", 47 "ModifiedMedian" 48 ] 49 }, 50 "Units": { 51 "description": "The sensor type, as it shows up in the D-Bus object name.", 52 "$ref": "legacy.json#/$defs/Types/Units" 53 } 54 }, 55 "required": ["Name", "Sensors", "Type", "Units"] 56 } 57 } 58} 59