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", 67d05ee59SBrad Bishop "description": [ 77d05ee59SBrad Bishop "The configuration used by the virtual-sensor daemon", 87d05ee59SBrad Bishop "in the phosphor-virtual-sensor repository. Virtual", 97d05ee59SBrad Bishop "sensors are xyz.openbmc_project.Sensor.Value D-Bus", 107d05ee59SBrad Bishop "objects that have sensor values calculated from the", 117d05ee59SBrad Bishop "D-Bus sensors listed here." 127d05ee59SBrad Bishop ], 137d05ee59SBrad Bishop "type": "object", 147d05ee59SBrad Bishop "properties": { 157d05ee59SBrad Bishop "MaxValidInput": { 16fa8ee87eSPatrick Williams "description": ["Maximum valid value of an input sensor"], 177d05ee59SBrad Bishop "type": "number" 187d05ee59SBrad Bishop }, 197d05ee59SBrad Bishop "MaxValue": { 20fa8ee87eSPatrick Williams "description": ["Maximum sensor value"], 217d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/MaxValue" 227d05ee59SBrad Bishop }, 237d05ee59SBrad Bishop "MinValidInput": { 24fa8ee87eSPatrick Williams "description": ["Miniumum valid value of an input sensor"], 257d05ee59SBrad Bishop "type": "number" 267d05ee59SBrad Bishop }, 277d05ee59SBrad Bishop "MinValue": { 28fa8ee87eSPatrick Williams "description": ["Minimum sensor value"], 297d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/MinValue" 307d05ee59SBrad Bishop }, 317d05ee59SBrad Bishop "Name": { 327d05ee59SBrad Bishop "type": "string" 337d05ee59SBrad Bishop }, 347d05ee59SBrad Bishop "Sensors": { 357d05ee59SBrad Bishop "description": [ 367d05ee59SBrad Bishop "Any DBus sensors whose values are used to", 377d05ee59SBrad Bishop "determine the value of the virtual sensor." 387d05ee59SBrad Bishop ], 397d05ee59SBrad Bishop "items": { 407d05ee59SBrad Bishop "type": "string" 417d05ee59SBrad Bishop }, 427d05ee59SBrad Bishop "type": "array" 437d05ee59SBrad Bishop }, 447d05ee59SBrad Bishop "Thresholds": { 457d05ee59SBrad Bishop "description": [ 467d05ee59SBrad Bishop "Threshold values used to set and clear alarms" 477d05ee59SBrad Bishop ], 487d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/Thresholds" 497d05ee59SBrad Bishop }, 507d05ee59SBrad Bishop "Type": { 517d05ee59SBrad Bishop "description": [ 527d05ee59SBrad Bishop "The type of calculation this sensor uses." 537d05ee59SBrad Bishop ], 547d05ee59SBrad Bishop "type": "string", 55*f7b0b472STao Lin "enum": ["ModifiedMedian", "Maximum"] 567d05ee59SBrad Bishop }, 577d05ee59SBrad Bishop "Units": { 587d05ee59SBrad Bishop "description": [ 597d05ee59SBrad Bishop "The sensor type, as it shows up in the D-Bus", 607d05ee59SBrad Bishop "object name." 617d05ee59SBrad Bishop ], 627d05ee59SBrad Bishop "$ref": "legacy.json#/definitions/Types/Units" 637d05ee59SBrad Bishop } 647d05ee59SBrad Bishop }, 65fa8ee87eSPatrick Williams "required": ["Name", "Sensors", "Type", "Units"] 667d05ee59SBrad Bishop } 677d05ee59SBrad Bishop } 687d05ee59SBrad Bishop} 69