Agency Hosting: Metrics
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. 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.
get/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics
Path parameters
order_idinteger required
Example:123456
Agency Plan order ID
Query parameters
time_frame_hours1 | 24 | 168 | 336 | 720
Example:168
Length of the window in hours, ending now. Bucket size grows with the window.
Response
Success response
Example response
{
"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
}
]
}
]
}Changes
Changed in 1 of the 88 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○