17d05ee59SBrad Bishop{ 27d05ee59SBrad Bishop "$schema": "http://json-schema.org/draft-07/schema#", 37d05ee59SBrad Bishop "definitions": { 47d05ee59SBrad Bishop "VirtualSensor": { 57d05ee59SBrad Bishop "title": "phosphor-virtual-sensor configuration", 6*bb8aa370SAndrew Jeffery "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.", 77d05ee59SBrad Bishop "type": "object", 87d05ee59SBrad Bishop "properties": { 97d05ee59SBrad Bishop "MaxValidInput": { 10*bb8aa370SAndrew Jeffery "description": "Maximum valid value of an input sensor", 117d05ee59SBrad Bishop "type": "number" 127d05ee59SBrad Bishop }, 137d05ee59SBrad Bishop "MaxValue": { 14*bb8aa370SAndrew Jeffery "description": "Maximum sensor value", 157d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/MaxValue" 167d05ee59SBrad Bishop }, 177d05ee59SBrad Bishop "MinValidInput": { 18*bb8aa370SAndrew Jeffery "description": "Miniumum valid value of an input sensor", 197d05ee59SBrad Bishop "type": "number" 207d05ee59SBrad Bishop }, 217d05ee59SBrad Bishop "MinValue": { 22*bb8aa370SAndrew Jeffery "description": "Minimum sensor value", 237d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/MinValue" 247d05ee59SBrad Bishop }, 257d05ee59SBrad Bishop "Name": { 267d05ee59SBrad Bishop "type": "string" 277d05ee59SBrad Bishop }, 287d05ee59SBrad Bishop "Sensors": { 29*bb8aa370SAndrew Jeffery "description": "Any DBus sensors whose values are used to determine the value of the virtual sensor.", 307d05ee59SBrad Bishop "items": { 317d05ee59SBrad Bishop "type": "string" 327d05ee59SBrad Bishop }, 337d05ee59SBrad Bishop "type": "array" 347d05ee59SBrad Bishop }, 357d05ee59SBrad Bishop "Thresholds": { 36*bb8aa370SAndrew Jeffery "description": "Threshold values used to set and clear alarms", 377d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/Thresholds" 387d05ee59SBrad Bishop }, 397d05ee59SBrad Bishop "Type": { 40*bb8aa370SAndrew Jeffery "description": "The type of calculation this sensor uses.", 417d05ee59SBrad Bishop "type": "string", 42f7b0b472STao Lin "enum": ["ModifiedMedian", "Maximum"] 437d05ee59SBrad Bishop }, 447d05ee59SBrad Bishop "Units": { 45*bb8aa370SAndrew Jeffery "description": "The sensor type, as it shows up in the D-Bus object name.", 467d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/Units" 477d05ee59SBrad Bishop } 487d05ee59SBrad Bishop }, 49fa8ee87eSPatrick Williams "required": ["Name", "Sensors", "Type", "Units"] 507d05ee59SBrad Bishop } 517d05ee59SBrad Bishop } 527d05ee59SBrad Bishop} 53