List order resource usage metrics
Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown.
Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
API Token authentication
Agency Plan order ID
123456Length of the window in hours, ending now. Bucket size grows with the window.
24Example: 168Possible values: Success response
Unauthenticated response
Validation error response
Error response
GET /api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"limits": {
"memory_bytes": 104857600,
"cpu_percent": 400,
"processes": 100
},
"metrics": [
{
"cpu_percent": 15.5,
"memory_bytes": 125829120,
"processes": 12,
"timestamp": 1736325738
}
],
"websites": [
{
"uid": "cvDuwAOvq",
"domains": [
"example.com",
"www.example.com"
],
"metrics": [
{
"cpu_percent": 15.5,
"memory_bytes": 125829120,
"processes": 12,
"timestamp": 1736325738
}
]
}
]
}Last updated
Was this helpful?