Read server data
Response
OK
Example response
{
"data": {
"cpu": {
"physical_core": 4,
"logical_core": 8,
"frequency": 2500,
"free_percent": 0.5,
"usage_percent": 0.5
},
"memory": {
"total_bytes": 1351533568,
"available_bytes": 351533568,
"used_bytes": 1000000000,
"usage_percent": 0.2601
},
"disk": [
{
"device": "/dev/sda1",
"mountpoint": "/home",
"total_bytes": 1099511627776,
"free_bytes": 549755813888,
"used_bytes": 549755813888,
"usage_percent": 50,
"total_inodes": 1000000,
"free_inodes": 500000,
"used_inodes": 500000,
"inodes_usage_percent": 50,
"read_bytes": 1024000,
"write_bytes": 512000,
"read_time": 1000,
"write_time": 500
}
],
"host": {
"os": "linux",
"platform": "debian",
"kernel_version": "5.4.0-42-generic"
},
"net": [
{
"name": "eth0",
"bytes_sent": 1024,
"bytes_recv": 2048,
"packets_sent": 100,
"packets_recv": 200
}
]
},
"errors": [
{
"metric": [
"cpu.temperature"
]
}
]
}Changes
Changed in 5 of the 8 revisions of this API.727
- ○
added the optional property
data/disk/items/mountpointto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/disk/items/mountpointto the response with the207statusresponse-optional-property-added
- ○
- ●
removed the optional property
errors/items/errorfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/errorfrom the response with the207statusresponse-optional-property-removed
- ○
added the optional property
errors/items/errto the response with the200statusresponse-optional-property-added
- ○
added the optional property
errors/items/errto the response with the207statusresponse-optional-property-added
- ●
- ▲
the response property
data/cpu/temperaturebecame nullable for the status200response-property-became-nullable
- ▲
the response property
data/cpu/temperaturebecame nullable for the status207response-property-became-nullable
- ▲
the
data/cpu/temperatureresponse's property type/format changed fromnumber/toarray/for status200response-property-type-changed
- ▲
the
data/cpu/temperatureresponse's property type/format changed fromnumber/toarray/for status207response-property-type-changed
- ▲
the
errors/items/metricresponse's property type/format changed fromstring/toarray/for status200response-property-type-changed
- ▲
the
errors/items/metricresponse's property type/format changed fromstring/toarray/for status207response-property-type-changed
- ○
the endpoint scheme security
type AND scheme AND bearerFormatwas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲