Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 4 | "Aggregate": { |
Brad Bishop | ada40c5 | 2020-05-07 19:32:05 -0400 | [diff] [blame] | 5 | "description": [ |
| 6 | "Don't add additional properties to this schema. Consult ", |
| 7 | "README.schema for instructions on adding new Exposes element ", |
| 8 | "sub-schema." |
| 9 | ], |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 10 | "additionalProperties": false, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 11 | "properties": { |
| 12 | "Address": { |
| 13 | "$ref": "#/definitions/Types/Address" |
| 14 | }, |
| 15 | "AllowedFailures": { |
| 16 | "$ref": "#/definitions/Types/AllowedFailures" |
| 17 | }, |
| 18 | "AlphaF": { |
| 19 | "$ref": "#/definitions/Types/AlphaF" |
| 20 | }, |
| 21 | "AlphaS": { |
| 22 | "$ref": "#/definitions/Types/AlphaS" |
| 23 | }, |
| 24 | "BindConnector": { |
| 25 | "$ref": "#/definitions/Types/BindConnector" |
| 26 | }, |
| 27 | "BindPresence": { |
| 28 | "$ref": "#/definitions/Types/BindPresence" |
| 29 | }, |
| 30 | "BridgeGpio": { |
| 31 | "$ref": "#/definitions/Types/BridgeGpio" |
| 32 | }, |
| 33 | "Bus": { |
| 34 | "$ref": "#/definitions/Types/Bus" |
| 35 | }, |
| 36 | "C1": { |
| 37 | "$ref": "#/definitions/Types/C1" |
| 38 | }, |
| 39 | "C2": { |
| 40 | "$ref": "#/definitions/Types/C2" |
| 41 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 42 | "CPURequired": { |
| 43 | "$ref": "#/definitions/Types/CPURequired" |
| 44 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 45 | "ChannelNames": { |
| 46 | "$ref": "#/definitions/Types/ChannelNames" |
| 47 | }, |
| 48 | "Class": { |
| 49 | "$ref": "#/definitions/Types/Class" |
| 50 | }, |
| 51 | "Connector": { |
| 52 | "$ref": "#/definitions/Types/Connector" |
| 53 | }, |
| 54 | "CpuID": { |
| 55 | "$ref": "#/definitions/Types/CpuID" |
| 56 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 57 | "CurrScaleFactor": { |
| 58 | "$ref": "#/definitions/Types/CurrScaleFactor" |
| 59 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 60 | "Direction": { |
| 61 | "$ref": "#/definitions/Types/Direction" |
| 62 | }, |
| 63 | "DtsCritOffset": { |
| 64 | "$ref": "#/definitions/Types/DtsCritOffset" |
| 65 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 66 | "FaultIndex": { |
| 67 | "$ref": "#/definitions/Types/FaultIndex" |
| 68 | }, |
| 69 | "FaultType": { |
| 70 | "$ref": "#/definitions/Types/FaultType" |
| 71 | }, |
| 72 | "GpioPins": { |
| 73 | "$ref": "#/definitions/Types/GpioPins" |
| 74 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 75 | "GpioPolarity": { |
| 76 | "$ref": "#/definitions/Types/GpioPolarity" |
| 77 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 78 | "Index": { |
| 79 | "$ref": "#/definitions/Types/Index" |
| 80 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 81 | "Labels": { |
| 82 | "$ref": "#/definitions/Types/Labels" |
| 83 | }, |
| 84 | "LedGpioPins": { |
| 85 | "$ref": "#/definitions/Types/LedGpioPins" |
| 86 | }, |
| 87 | "MaxCFM": { |
| 88 | "$ref": "#/definitions/Types/MaxCFM" |
| 89 | }, |
| 90 | "MaxReading": { |
| 91 | "$ref": "#/definitions/Types/MaxReading" |
| 92 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 93 | "Name": { |
| 94 | "$ref": "#/definitions/Types/Name" |
| 95 | }, |
| 96 | "Name1": { |
| 97 | "$ref": "#/definitions/Types/Name1" |
| 98 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 99 | "OffsetValue": { |
| 100 | "$ref": "#/definitions/Types/OffsetValue" |
| 101 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 102 | "Polarity": { |
| 103 | "$ref": "#/definitions/Types/Polarity" |
| 104 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 105 | "Polling": { |
| 106 | "$ref": "#/definitions/Types/Polling" |
| 107 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 108 | "PowerFactorMax": { |
| 109 | "$ref": "#/definitions/Types/PowerFactorMax" |
| 110 | }, |
| 111 | "PowerFactorMin": { |
| 112 | "$ref": "#/definitions/Types/PowerFactorMin" |
| 113 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 114 | "PowerScaleFactor": { |
| 115 | "$ref": "#/definitions/Types/PowerScaleFactor" |
| 116 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 117 | "PowerState": { |
| 118 | "$ref": "#/definitions/Types/PowerState" |
| 119 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 120 | "Presence": { |
| 121 | "$ref": "#/definitions/Types/Presence" |
| 122 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 123 | "PresenceGpio": { |
| 124 | "$ref": "#/definitions/Types/PresenceGpio" |
| 125 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 126 | "Pwm": { |
| 127 | "$ref": "#/definitions/Types/Pwm" |
| 128 | }, |
| 129 | "QMax": { |
| 130 | "$ref": "#/definitions/Types/QMax" |
| 131 | }, |
| 132 | "QMin": { |
| 133 | "$ref": "#/definitions/Types/QMin" |
| 134 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 135 | "RedundantCount": { |
| 136 | "$ref": "#/definitions/Types/RedundantCount" |
| 137 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 138 | "ScaleFactor": { |
| 139 | "$ref": "#/definitions/Types/ScaleFactor" |
| 140 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 141 | "ScaleValue": { |
| 142 | "$ref": "#/definitions/Types/ScaleValue" |
| 143 | }, |
| 144 | "SensorType": { |
| 145 | "$ref": "#/definitions/Types/SensorType" |
| 146 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 147 | "TachMaxPercent": { |
| 148 | "$ref": "#/definitions/Types/TachMaxPercent" |
| 149 | }, |
| 150 | "TachMinPercent": { |
| 151 | "$ref": "#/definitions/Types/TachMinPercent" |
| 152 | }, |
| 153 | "Tachs": { |
| 154 | "$ref": "#/definitions/Types/Tachs" |
| 155 | }, |
| 156 | "Thresholds": { |
| 157 | "$ref": "#/definitions/Types/Thresholds" |
| 158 | }, |
Anoop S | a5a716d | 2020-11-26 18:57:26 +0000 | [diff] [blame^] | 159 | "HostSMbusIndex": { |
| 160 | "$ref": "#/definitions/Types/HostSMbusIndex" |
| 161 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 162 | "Type": { |
| 163 | "$ref": "#/definitions/Types/Type" |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 164 | } |
| 165 | }, |
| 166 | "required": [ |
| 167 | "Name", |
| 168 | "Type" |
| 169 | ], |
| 170 | "type": "object" |
| 171 | }, |
| 172 | "Types": { |
| 173 | "Address": { |
Brad Bishop | a142709 | 2020-05-07 17:45:28 -0400 | [diff] [blame] | 174 | "type": [ |
| 175 | "string", |
| 176 | "array" |
| 177 | ] |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 178 | }, |
| 179 | "AllowedFailures": { |
| 180 | "type": "number" |
| 181 | }, |
| 182 | "AlphaF": { |
| 183 | "type": "number" |
| 184 | }, |
| 185 | "AlphaS": { |
| 186 | "type": "number" |
| 187 | }, |
| 188 | "BindConnector": { |
| 189 | "type": "string" |
| 190 | }, |
| 191 | "BindPresence": { |
| 192 | "type": "string" |
| 193 | }, |
| 194 | "BridgeGpio": { |
Brad Bishop | a142709 | 2020-05-07 17:45:28 -0400 | [diff] [blame] | 195 | "type": [ |
| 196 | "number", |
| 197 | "array" |
| 198 | ] |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 199 | }, |
| 200 | "Bus": { |
| 201 | "type": [ |
| 202 | "string", |
| 203 | "number" |
| 204 | ] |
| 205 | }, |
| 206 | "C1": { |
| 207 | "type": "number" |
| 208 | }, |
| 209 | "C2": { |
| 210 | "type": "number" |
| 211 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 212 | "CPURequired": { |
| 213 | "type": "number" |
| 214 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 215 | "ChannelNames": { |
| 216 | "items": { |
| 217 | "type": "string" |
| 218 | }, |
| 219 | "type": "array" |
| 220 | }, |
| 221 | "Class": { |
| 222 | "type": "string" |
| 223 | }, |
| 224 | "Connector": { |
| 225 | "properties": { |
| 226 | "Name": { |
| 227 | "type": "string" |
| 228 | }, |
| 229 | "Pwm": { |
| 230 | "type": "number" |
| 231 | }, |
| 232 | "Tachs": { |
| 233 | "items": { |
| 234 | "type": "number" |
| 235 | }, |
| 236 | "type": "array" |
| 237 | } |
| 238 | }, |
| 239 | "required": [ |
| 240 | "Name", |
| 241 | "Pwm", |
| 242 | "Tachs" |
| 243 | ], |
| 244 | "type": "object" |
| 245 | }, |
| 246 | "CpuID": { |
| 247 | "type": "number" |
| 248 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 249 | "CurrScaleFactor": { |
| 250 | "type": "number" |
| 251 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 252 | "Direction": { |
| 253 | "type": "string" |
| 254 | }, |
| 255 | "DtsCritOffset": { |
| 256 | "type": "number" |
| 257 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 258 | "FaultIndex": { |
| 259 | "type": "number" |
| 260 | }, |
| 261 | "FaultType": { |
| 262 | "type": "string" |
| 263 | }, |
| 264 | "GpioPins": { |
| 265 | "items": { |
| 266 | "type": "number" |
| 267 | }, |
| 268 | "type": "array" |
| 269 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 270 | "GpioPolarity": { |
| 271 | "enum": [ |
| 272 | "Low" |
| 273 | ] |
| 274 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 275 | "Index": { |
| 276 | "type": "number" |
| 277 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 278 | "Labels": { |
| 279 | "items": { |
| 280 | "type": "string" |
| 281 | }, |
| 282 | "type": "array" |
| 283 | }, |
| 284 | "LedGpioPins": { |
| 285 | "items": { |
| 286 | "type": "number" |
| 287 | }, |
| 288 | "type": "array" |
| 289 | }, |
| 290 | "MaxCFM": { |
| 291 | "type": "number" |
| 292 | }, |
| 293 | "MaxReading": { |
| 294 | "type": "number" |
| 295 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 296 | "Name": { |
| 297 | "type": "string" |
| 298 | }, |
| 299 | "Name1": { |
| 300 | "type": "string" |
| 301 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 302 | "OffsetValue": { |
| 303 | "type": "number" |
| 304 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 305 | "Polarity": { |
| 306 | "type": "string" |
| 307 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 308 | "Polling": { |
| 309 | "type": "object" |
| 310 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 311 | "PowerFactorMax": { |
| 312 | "type": "number" |
| 313 | }, |
| 314 | "PowerFactorMin": { |
| 315 | "type": "number" |
| 316 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 317 | "PowerScaleFactor": { |
| 318 | "type": "number" |
| 319 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 320 | "PowerState": { |
| 321 | "type": "string" |
| 322 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 323 | "Presence": { |
| 324 | "properties": { |
| 325 | "PinName": { |
| 326 | "type": "string" |
| 327 | }, |
| 328 | "Polarity": { |
| 329 | "enum": "Low" |
| 330 | } |
| 331 | }, |
| 332 | "type": "object" |
| 333 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 334 | "PresenceGpio": { |
Brad Bishop | a142709 | 2020-05-07 17:45:28 -0400 | [diff] [blame] | 335 | "type": [ |
| 336 | "number", |
| 337 | "array" |
| 338 | ] |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 339 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 340 | "Pwm": { |
| 341 | "type": "number" |
| 342 | }, |
| 343 | "QMax": { |
| 344 | "type": "number" |
| 345 | }, |
| 346 | "QMin": { |
| 347 | "type": "number" |
| 348 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 349 | "RedundantCount": { |
| 350 | "type": "number" |
| 351 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 352 | "ScaleFactor": { |
| 353 | "type": "number" |
| 354 | }, |
Brad Bishop | 98e78b7 | 2020-06-22 16:12:15 -0400 | [diff] [blame] | 355 | "ScaleValue": { |
| 356 | "type": "number" |
| 357 | }, |
| 358 | "SensorType": { |
| 359 | "type": "string" |
| 360 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 361 | "TachMaxPercent": { |
| 362 | "type": "number" |
| 363 | }, |
| 364 | "TachMinPercent": { |
| 365 | "type": "number" |
| 366 | }, |
| 367 | "Tachs": { |
| 368 | "items": { |
| 369 | "type": [ |
| 370 | "number", |
| 371 | "string" |
| 372 | ] |
| 373 | }, |
| 374 | "type": "array" |
| 375 | }, |
| 376 | "Thresholds": { |
| 377 | "items": { |
| 378 | "properties": { |
| 379 | "Direction": { |
| 380 | "type": "string" |
| 381 | }, |
| 382 | "Label": { |
| 383 | "type": "string" |
| 384 | }, |
| 385 | "Name": { |
| 386 | "type": "string" |
| 387 | }, |
| 388 | "Severity": { |
| 389 | "type": "number" |
| 390 | }, |
| 391 | "Value": { |
| 392 | "type": "number" |
| 393 | } |
| 394 | }, |
| 395 | "required": [ |
| 396 | "Direction", |
| 397 | "Name", |
| 398 | "Severity", |
| 399 | "Value" |
| 400 | ], |
| 401 | "type": "object" |
| 402 | }, |
| 403 | "type": "array" |
| 404 | }, |
Anoop S | a5a716d | 2020-11-26 18:57:26 +0000 | [diff] [blame^] | 405 | "HostSMbusIndex": { |
| 406 | "type": "number" |
| 407 | }, |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 408 | "Type": { |
| 409 | "type": "string" |
Brad Bishop | 6666588 | 2020-05-07 17:05:18 -0400 | [diff] [blame] | 410 | } |
| 411 | } |
| 412 | } |
| 413 | } |