mirror of
https://github.com/kemko/nomad.git
synced 2026-01-11 12:55:42 +03:00
Merge pull request #9682 from hashicorp/docs-7795-device-plugin-api
docs: added examples of device responses to api docs
This commit is contained in:
@@ -125,6 +125,58 @@ $ curl \
|
||||
}
|
||||
],
|
||||
"CPUTicksConsumed": 1126.8044804480448,
|
||||
"DeviceStats": [
|
||||
{
|
||||
"InstanceStats": {
|
||||
"6a61929e-d572-092d-5921-156a913f8e56": {
|
||||
"Stats": {
|
||||
"Attributes": {
|
||||
"Used Memory": {
|
||||
"Desc": "Memory in use by the device",
|
||||
"IntNumeratorVal": 128,
|
||||
"Unit": "MiB"
|
||||
}
|
||||
},
|
||||
"Nested": {}
|
||||
},
|
||||
"Summary": {
|
||||
"Desc": "Memory in use by the device",
|
||||
"IntNumeratorVal": 128,
|
||||
"Unit": "MiB"
|
||||
},
|
||||
"Timestamp": "2020-12-18T17:15:08.949806Z"
|
||||
}
|
||||
},
|
||||
"Name": "modelA",
|
||||
"Type": "skeleton",
|
||||
"Vendor": "hashicorp"
|
||||
},
|
||||
{
|
||||
"InstanceStats": {
|
||||
"73af5d3e-00f9-0786-9bc1-8f5ffa953f15": {
|
||||
"Stats": {
|
||||
"Attributes": {
|
||||
"Used Memory": {
|
||||
"Desc": "Memory in use by the device",
|
||||
"IntNumeratorVal": 128,
|
||||
"Unit": "MiB"
|
||||
}
|
||||
},
|
||||
"Nested": {}
|
||||
},
|
||||
"Summary": {
|
||||
"Desc": "Memory in use by the device",
|
||||
"IntNumeratorVal": 128,
|
||||
"Unit": "MiB"
|
||||
},
|
||||
"Timestamp": "2020-12-18T17:15:08.949806Z"
|
||||
}
|
||||
},
|
||||
"Name": "modelB",
|
||||
"Type": "skeleton",
|
||||
"Vendor": "hashicorp"
|
||||
}
|
||||
],
|
||||
"DiskStats": [
|
||||
{
|
||||
"Available": 142943150080,
|
||||
|
||||
@@ -297,7 +297,58 @@ $ curl \
|
||||
"Cpu": {
|
||||
"CpuShares": 32000
|
||||
},
|
||||
"Devices": null,
|
||||
"Devices": [
|
||||
{
|
||||
"Attributes": {
|
||||
"attrB": {
|
||||
"Float": 10.5,
|
||||
"Unit": "MW"
|
||||
},
|
||||
"attrA": {
|
||||
"Int": 1024,
|
||||
"Unit": "MB"
|
||||
}
|
||||
},
|
||||
"Instances": [
|
||||
{
|
||||
"HealthDescription": "",
|
||||
"Healthy": true,
|
||||
"ID": "6a61929e-d572-092d-5921-156a913f8e56",
|
||||
"Locality": {
|
||||
"PciBusID": "77cda534-0660-2688-6c2e-ad6c62fc5ff3"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "modelA",
|
||||
"Type": "skeleton",
|
||||
"Vendor": "hashicorp"
|
||||
},
|
||||
{
|
||||
"Attributes": {
|
||||
"attrB": {
|
||||
"Float": 10.5,
|
||||
"Unit": "MW"
|
||||
},
|
||||
"attrA": {
|
||||
"Int": 1024,
|
||||
"Unit": "MB"
|
||||
}
|
||||
},
|
||||
"Instances": [
|
||||
{
|
||||
"HealthDescription": "",
|
||||
"Healthy": true,
|
||||
"ID": "73af5d3e-00f9-0786-9bc1-8f5ffa953f15",
|
||||
"Locality": {
|
||||
"PciBusID": "dbda64d1-ad25-6c7c-d3fb-798bae0581bf"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Name": "modelB",
|
||||
"Type": "skeleton",
|
||||
"Vendor": "hashicorp"
|
||||
}
|
||||
],
|
||||
"Disk": {
|
||||
"DiskMB": 7890
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user