cURL
curl --request GET \ --url https://rdp.sh/api/v1/servers/{server}/graphs/{timeframe} \ --header 'Authorization: <api-key>'
{ "status": true, "metrics": [ "<string>" ], "timeframe": "<string>", "data": "<array>" }
Get server resource usage graphs (CPU, memory, network) for the specified timeframe.
Time range for graph data
hour
day
week
month
"hour"
Server graph data retrieved successfully.
["cpu", "mem", "netin", "netout"]