| OLD | NEW |
| (Empty) | |
| 1 { |
| 2 "version": { "major": "1", "minor": "0" }, |
| 3 "domains": [{ |
| 4 "domain": "SystemInfo", |
| 5 "description": "The SystemInfo domain defines methods and events for que
rying low-level system information.", |
| 6 "hidden": true, |
| 7 "types": [ |
| 8 { |
| 9 "id": "GPUDevice", |
| 10 "type": "object", |
| 11 "properties": [ |
| 12 { "name": "vendorId", "type": "number", "description": "PCI
ID of the GPU vendor, if available; 0 otherwise." }, |
| 13 { "name": "deviceId", "type": "number", "description": "PCI
ID of the GPU device, if available; 0 otherwise." }, |
| 14 { "name": "vendorString", "type": "string", "description": "
String description of the GPU vendor, if the PCI ID is not available." }, |
| 15 { "name": "deviceString", "type": "string", "description": "
String description of the GPU device, if the PCI ID is not available." } |
| 16 ], |
| 17 "description": "Describes a single graphics processor (GPU)." |
| 18 }, |
| 19 { |
| 20 "id": "GPUInfo", |
| 21 "type": "object", |
| 22 "properties": [ |
| 23 { "name": "devices", "type": "array", "items": { "$ref": "GP
UDevice" }, "description": "The graphics devices on the system. Element 0 is the
primary GPU." }, |
| 24 { "name": "auxAttributes", "type": "object", "optional": "tr
ue", "description": "An optional dictionary of additional GPU related attributes
." } |
| 25 ], |
| 26 "description": "Provides information about the GPU(s) on the sys
tem." |
| 27 }, |
| 28 { |
| 29 "id": "SystemInfo", |
| 30 "type": "object", |
| 31 "properties": [ |
| 32 { "name": "gpu", "$ref": "GPUInfo", "description": "Informat
ion about the GPUs on the system." }, |
| 33 { "name": "modelName", "type": "string", "description": "A p
latform-dependent description of the model of the machine. On Mac OS, this is, f
or example, 'MacBookPro 10.1'. Will be the empty string if not supported." } |
| 34 ], |
| 35 "description": "Provides information about the system." |
| 36 } |
| 37 ], |
| 38 "commands": [ |
| 39 { |
| 40 "name": "getInfo", |
| 41 "description": "Returns information about the system.", |
| 42 "returns": [ |
| 43 { "name": "info", "$ref": "SystemInfo", "description": "Info
rmation about the system." } |
| 44 ] |
| 45 } |
| 46 ] |
| 47 }] |
| 48 } |
| OLD | NEW |