James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/schema#", |
| 3 | "anyOf": [ |
| 4 | { |
| 5 | "type": "array", |
| 6 | "items": { |
| 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "Exposes": { |
| 10 | "type": "array", |
| 11 | "items": { |
| 12 | "type": "object", |
| 13 | "properties": { |
| 14 | "Address": { |
| 15 | "type": "string" |
| 16 | }, |
| 17 | "Bus": { |
| 18 | "type": "string" |
| 19 | }, |
| 20 | "Name": { |
| 21 | "type": "string" |
| 22 | }, |
| 23 | "Thresholds": { |
| 24 | "type": "array", |
| 25 | "items": { |
| 26 | "type": "object", |
| 27 | "properties": { |
| 28 | "Direction": { |
| 29 | "type": "string" |
| 30 | }, |
| 31 | "Name": { |
| 32 | "type": "string" |
| 33 | }, |
| 34 | "Severity": { |
| 35 | "type": "integer" |
| 36 | }, |
| 37 | "Value": { |
| 38 | "type": "integer" |
| 39 | } |
| 40 | }, |
| 41 | "required": [ |
| 42 | "Direction", |
| 43 | "Name", |
| 44 | "Severity", |
| 45 | "Value" |
| 46 | ] |
| 47 | } |
| 48 | }, |
| 49 | "Type": { |
| 50 | "type": "string" |
| 51 | } |
| 52 | }, |
| 53 | "required": [ |
| 54 | "Address", |
| 55 | "Bus", |
| 56 | "Name", |
| 57 | "Type" |
| 58 | ] |
| 59 | } |
| 60 | }, |
| 61 | "Name": { |
| 62 | "type": "string" |
| 63 | }, |
| 64 | "Probe": { |
| 65 | "type": "string" |
| 66 | }, |
| 67 | "xyz.openbmc_project.Inventory.Decorator.Asset": { |
| 68 | "type": "object", |
| 69 | "properties": { |
| 70 | "Manufacturer": { |
| 71 | "type": "string" |
| 72 | }, |
| 73 | "Model": { |
| 74 | "type": "string" |
| 75 | }, |
| 76 | "PartNumber": { |
| 77 | "type": "string" |
| 78 | }, |
| 79 | "SerialNumber": { |
| 80 | "type": "string" |
| 81 | } |
| 82 | }, |
| 83 | "required": [ |
| 84 | "Manufacturer", |
| 85 | "Model", |
| 86 | "PartNumber", |
| 87 | "SerialNumber" |
| 88 | ] |
| 89 | }, |
| 90 | "Type": { |
| 91 | "type": "string" |
| 92 | } |
| 93 | }, |
| 94 | "required": [ |
| 95 | "Exposes", |
| 96 | "Name", |
| 97 | "Probe", |
| 98 | "xyz.openbmc_project.Inventory.Decorator.Asset" |
| 99 | ] |
| 100 | } |
| 101 | }, |
| 102 | { |
| 103 | "type": "object", |
| 104 | "properties": { |
| 105 | "Exposes": { |
| 106 | "type": "array", |
| 107 | "items": { |
| 108 | "type": "object", |
| 109 | "properties": { |
| 110 | "Address": { |
| 111 | "type": "string" |
| 112 | }, |
| 113 | "Name": { |
| 114 | "type": "string" |
| 115 | }, |
| 116 | "Type": { |
| 117 | "type": "string" |
| 118 | }, |
| 119 | "Bus": { |
| 120 | "type": [ |
| 121 | "integer", |
| 122 | "string" |
| 123 | ] |
| 124 | }, |
| 125 | "Thresholds": { |
| 126 | "type": "array", |
| 127 | "items": { |
| 128 | "type": "object", |
| 129 | "properties": { |
| 130 | "Direction": { |
| 131 | "type": "string" |
| 132 | }, |
| 133 | "Name": { |
| 134 | "type": "string" |
| 135 | }, |
| 136 | "Severity": { |
| 137 | "type": "integer" |
| 138 | }, |
| 139 | "Value": { |
| 140 | "type": "number" |
| 141 | }, |
| 142 | "Label": { |
| 143 | "type": "string" |
| 144 | } |
| 145 | }, |
| 146 | "required": [ |
| 147 | "Direction", |
| 148 | "Name", |
| 149 | "Severity", |
| 150 | "Value" |
| 151 | ] |
| 152 | } |
| 153 | }, |
James Feist | abb231c | 2018-09-05 10:31:02 -0700 | [diff] [blame] | 154 | "Inputs": { |
| 155 | "type": "array", |
| 156 | "items": { |
| 157 | "type": "string" |
| 158 | } |
| 159 | }, |
| 160 | "NegativeHysteresis": { |
| 161 | "type": "integer" |
| 162 | }, |
| 163 | "Output": { |
| 164 | "type": "array", |
| 165 | "items": { |
| 166 | "type": "number" |
| 167 | } |
| 168 | }, |
| 169 | "PositiveHysteresis": { |
| 170 | "type": "integer" |
| 171 | }, |
| 172 | "Reading": { |
| 173 | "type": "array", |
| 174 | "items": { |
| 175 | "type": "number" |
| 176 | } |
| 177 | }, |
| 178 | "Zones": { |
| 179 | "type": "array", |
| 180 | "items": { |
| 181 | "type": "string" |
| 182 | } |
| 183 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 184 | "BindConnector": { |
| 185 | "type": "string" |
| 186 | }, |
| 187 | "Index": { |
| 188 | "type": "integer" |
| 189 | }, |
James Feist | 9c26ef9 | 2018-12-11 15:22:59 -0800 | [diff] [blame] | 190 | "MaxReading": { |
| 191 | "type": "integer" |
| 192 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 193 | "Class": { |
| 194 | "type": "string" |
| 195 | }, |
| 196 | "FFGainCoefficient": { |
| 197 | "type": "number" |
| 198 | }, |
| 199 | "FFOffCoefficient": { |
| 200 | "type": "number" |
| 201 | }, |
| 202 | "ICoefficient": { |
| 203 | "type": "number" |
| 204 | }, |
James Feist | ca3eec8 | 2018-08-08 16:51:24 -0700 | [diff] [blame] | 205 | "ILimitMax": { |
| 206 | "type": "number" |
| 207 | }, |
| 208 | "ILimitMin": { |
| 209 | "type": "number" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 210 | }, |
James Feist | ca3eec8 | 2018-08-08 16:51:24 -0700 | [diff] [blame] | 211 | "OutLimitMax": { |
| 212 | "type": "number" |
| 213 | }, |
| 214 | "OutLimitMin": { |
| 215 | "type": "number" |
| 216 | }, |
| 217 | "Outputs": { |
| 218 | "type": "array", |
| 219 | "items": { |
| 220 | "type": "string" |
| 221 | } |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 222 | }, |
| 223 | "PCoefficient": { |
| 224 | "type": "number" |
| 225 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 226 | "SlewNeg": { |
| 227 | "type": "number" |
| 228 | }, |
| 229 | "SlewPos": { |
| 230 | "type": "number" |
| 231 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 232 | "FailSafePercent": { |
| 233 | "type": "integer" |
| 234 | }, |
James Feist | ca3eec8 | 2018-08-08 16:51:24 -0700 | [diff] [blame] | 235 | "MinThermalRpm": { |
| 236 | "type": "integer" |
| 237 | }, |
James Feist | 153b5bf | 2018-11-30 15:11:23 -0800 | [diff] [blame] | 238 | "AllowedFailures": { |
James Feist | e12bdda | 2018-11-01 14:23:44 -0700 | [diff] [blame] | 239 | "type": "integer" |
| 240 | }, |
James Feist | 15dadaa | 2019-01-02 16:28:19 -0800 | [diff] [blame] | 241 | "PowerState": { |
| 242 | "type": "string" |
| 243 | }, |
James Feist | 153b5bf | 2018-11-30 15:11:23 -0800 | [diff] [blame] | 244 | "AlphaF": { |
| 245 | "type": "number" |
| 246 | }, |
| 247 | "AlphaS": { |
| 248 | "type": "number" |
| 249 | }, |
| 250 | "PowerFactorMax": { |
| 251 | "type": "number" |
| 252 | }, |
| 253 | "PowerFactorMin": { |
| 254 | "type": "number" |
| 255 | }, |
| 256 | "QMax": { |
| 257 | "type": "number" |
| 258 | }, |
| 259 | "QMin": { |
| 260 | "type": "number" |
| 261 | }, |
| 262 | "C1": { |
| 263 | "type": "number" |
| 264 | }, |
| 265 | "C2": { |
| 266 | "type": "number" |
| 267 | }, |
| 268 | "MaxCFM": { |
| 269 | "type": "number" |
| 270 | }, |
| 271 | "TachMaxPercent": { |
| 272 | "type": "number" |
| 273 | }, |
| 274 | "TachMinPercent": { |
| 275 | "type": "number" |
| 276 | }, |
| 277 | "Tachs": { |
| 278 | "type": "array", |
| 279 | "items": { |
| 280 | "type": [ |
| 281 | "integer", |
| 282 | "string" |
| 283 | ] |
| 284 | } |
| 285 | }, |
James Feist | e12bdda | 2018-11-01 14:23:44 -0700 | [diff] [blame] | 286 | "BindPresence": { |
| 287 | "type": "string" |
| 288 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 289 | "Pwm": { |
| 290 | "type": "integer" |
| 291 | }, |
| 292 | "Status": { |
| 293 | "type": "string" |
| 294 | }, |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 295 | "Name1": { |
| 296 | "type": "string" |
| 297 | }, |
| 298 | "ScaleFactor": { |
| 299 | "type": "number" |
| 300 | }, |
| 301 | "CpuID": { |
| 302 | "type": "integer" |
James Feist | abb231c | 2018-09-05 10:31:02 -0700 | [diff] [blame] | 303 | }, |
| 304 | "SetPoint": { |
| 305 | "type": "number" |
James Feist | 87a50da | 2018-09-25 13:21:59 -0700 | [diff] [blame] | 306 | }, |
| 307 | "Direction": { |
| 308 | "type": "string" |
| 309 | }, |
| 310 | "Polarity": { |
| 311 | "type": "string" |
James Feist | 1e3e698 | 2018-08-03 16:09:28 -0700 | [diff] [blame] | 312 | } |
| 313 | }, |
| 314 | "required": [ |
| 315 | "Name", |
| 316 | "Type" |
| 317 | ] |
| 318 | } |
| 319 | }, |
| 320 | "Name": { |
| 321 | "type": "string" |
| 322 | }, |
| 323 | "Probe": { |
| 324 | "anyOf": [ |
| 325 | { |
| 326 | "type": "string" |
| 327 | }, |
| 328 | { |
| 329 | "type": "array", |
| 330 | "items": { |
| 331 | "type": "string" |
| 332 | } |
| 333 | } |
| 334 | ] |
| 335 | }, |
| 336 | "xyz.openbmc_project.Inventory.Decorator.Asset": { |
| 337 | "type": "object", |
| 338 | "properties": { |
| 339 | "Manufacturer": { |
| 340 | "type": "string" |
| 341 | }, |
| 342 | "Model": { |
| 343 | "type": "string" |
| 344 | }, |
| 345 | "PartNumber": { |
| 346 | "type": "string" |
| 347 | }, |
| 348 | "SerialNumber": { |
| 349 | "type": "string" |
| 350 | } |
| 351 | }, |
| 352 | "required": [ |
| 353 | "Manufacturer", |
| 354 | "Model", |
| 355 | "PartNumber", |
| 356 | "SerialNumber" |
| 357 | ] |
| 358 | }, |
| 359 | "Type": { |
| 360 | "type": "string" |
| 361 | } |
| 362 | }, |
| 363 | "required": [ |
| 364 | "Exposes", |
| 365 | "Name", |
| 366 | "Probe" |
| 367 | ] |
| 368 | } |
| 369 | ] |
| 370 | } |