const url = 'https://app.monitorly.cloud/api/v1/servers/NODE_ID/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/series \ --header 'Authorization: Bearer <token>'CPU, load, memory, disk and network of a server over the last 24 hours (5-minute points), 7 or 30 days (hourly points); from a newer node also IO wait, steal, network cards, pressure and temperature.
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”24h (5-minute points, the default), 7d or 30d (hourly points).
Responses
Section titled “Responses”The series.
object
Oldest first; a step without reports has no point.
object
The start of the step.
Pressure: the share of the time some tasks waited for CPU, memory or IO.
The second version (null from an older node): shares of all cores waiting for disks and taken by the hypervisor.
Bytes per second over the network cards only.
The hottest sensor.
Example generated
{ "points": [ { "at": "example", "cpuAvg": 1, "cpuMax": 1, "cpuPressureAvg": 1, "diskMax": 1, "ioPressureAvg": 1, "iowaitAvg": 1, "iowaitMax": 1, "loadAvg": 1, "loadMax": 1, "memoryAvg": 1, "memoryMax": 1, "memoryPressureAvg": 1, "netRxAvg": 1, "netTxAvg": 1, "nicRxAvg": 1, "nicTxAvg": 1, "stealAvg": 1, "temperatureMax": 1 } ], "range": "example", "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.