Vijay Khemka | abcc94f | 2020-08-11 15:27:44 -0700 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "Desc" : |
| 4 | { |
| 5 | "Name" : "Virtual_Inlet_Temp", |
Harvey Wu | f644374 | 2021-04-09 16:47:36 +0800 | [diff] [blame] | 6 | "SensorType" : "temperature", |
| 7 | "MaxValue": 127.0, |
| 8 | "MinValue": -128.0 |
Vijay Khemka | abcc94f | 2020-08-11 15:27:44 -0700 | [diff] [blame] | 9 | }, |
| 10 | "Threshold" : |
| 11 | { |
| 12 | "CriticalHigh": 90, |
| 13 | "CriticalLow": 20, |
| 14 | "WarningHigh": 70, |
| 15 | "WarningLow": 30 |
| 16 | }, |
Lei YU | 0fcf0e1 | 2021-06-04 11:14:17 +0800 | [diff] [blame] | 17 | "Associations": |
| 18 | [ |
| 19 | [ |
| 20 | "chassis", |
| 21 | "all_sensors", |
| 22 | "/xyz/openbmc_project/inventory/system/board/my_board" |
| 23 | ] |
| 24 | ], |
Vijay Khemka | abcc94f | 2020-08-11 15:27:44 -0700 | [diff] [blame] | 25 | "Params": |
| 26 | { |
| 27 | "ConstParam" : |
| 28 | [ |
| 29 | { |
| 30 | "ParamName" : "P1", |
| 31 | "Value" : 1.1 |
| 32 | } |
| 33 | ], |
| 34 | "DbusParam" : |
| 35 | [ |
| 36 | { |
| 37 | "ParamName" : "P2", |
| 38 | "Desc" : |
| 39 | { |
| 40 | "Name" : "MB_INLET_TEMP", |
| 41 | "SensorType" : "temperature" |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "ParamName" : "P3", |
| 46 | "Desc" : |
| 47 | { |
| 48 | "Name" : "MB_FAN0_TACH", |
| 49 | "SensorType" : "fan_tach" |
| 50 | } |
| 51 | } |
| 52 | ] |
| 53 | }, |
| 54 | "Expression" : "P1 * (P2 + 5 - P3 * 0.01)" |
| 55 | } |
| 56 | ] |