const url = 'https://app.monitorly.cloud/api/v1/servers/NODE_ID/device-series';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.monitorly.cloud/api/v1/servers/NODE_ID/device-series \ --header 'Authorization: Bearer <token>'Every disk, network card, temperature sensor or filesystem of a server over the last 24 hours, 7 or 30 days, by name.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The id of the private node that runs on the server.
Example
NODE_IDQuery Parameters
Section titled “Query Parameters”disk (whole block devices), interface (network cards), sensor (temperatures) or filesystem.
24h (5-minute points, the default), 7d or 30d (hourly points).
Responses
Section titled “Responses”The series.
object
By name: the kernel’s disk name, the card’s name, <chip>/<label> of a sensor, a mount path.
object
Oldest first; a step without a report of the device has no point.
One step of one device; only the fields of its kind are set.
object
Sensors: °C.
Disks: bytes and operations per second, the share of the time busy and the requests in flight.
Network cards: bytes, errors, drops and packets per second.
Filesystems: df’s Use% and the share of inodes in use (none where the filesystem counts none).
Example generated
{ "kind": "example", "range": "example", "series": [ { "name": "example", "points": [ { "at": "example", "awaitAvg": 1, "busyAvg": 1, "busyMax": 1, "celsiusAvg": 1, "celsiusMax": 1, "droppedAvg": 1, "errorsAvg": 1, "inodesMax": 1, "packetsAvg": 1, "queueAvg": 1, "readAvg": 1, "readOpsAvg": 1, "rxAvg": 1, "txAvg": 1, "usedMax": 1, "writeAvg": 1, "writeOpsAvg": 1 } ] } ], "stepSecs": 1}Bad Request.
request.malformed: the body or a parameter is not of the expected shapeauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unprocessable Entity.
field.invalid,field.required: a parameter breaks a rule;errorspoints at it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.