cURL
curl --request POST \ --url https://relytone.data.cloud/api/v1/projects/{id}/computes/{computeId}/metrics \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "startTime": "2023-11-07T05:31:56Z", "endTime": "2023-11-07T05:31:56Z", "metrics": [ "cpu" ] } '
{ "database": "<string>", "metrics": { "cpu": [ { "timestamp": "2023-11-07T05:31:56Z", "value": 123 } ], "memory": [ { "timestamp": "2023-11-07T05:31:56Z", "value": 123 } ], "disk": [ { "timestamp": "2023-11-07T05:31:56Z", "value": 123 } ], "network": [ { "timestamp": "2023-11-07T05:31:56Z", "value": 123 } ] } }
Get performance metrics data for compute resources
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Project identifier
Compute resource identifier
Start time
End time
Types of metrics to retrieve
cpu
memory
disk
network
Successfully retrieved metrics data
Database name
Show child attributes
Was this page helpful?