The site's caps, minutes at them and automatic actions, last 24 hours and 7 days
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/sites/{id}/resource-usageThe site's caps, minutes at them and automatic actions, last 24 hours and 7 days (ADR 0126)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required |
Responses
200 Usage
Content type: application/json
cpu_percentinteger requiredmemory_mbinteger requiredappboolean requiredapp_cpu_percentinteger requiredapp_memory_mbinteger requiredsourcestring requiredinternal: the defaults of a site without a plan (ADR 0122)
Allowed values:"plan""internal""custom""none"plan_cpu_percentinteger requiredThe plan's caps, or without a plan the internal defaults that inherit gives back
plan_memory_mbinteger requiredplan_app_cpu_percentinteger requiredplan_app_memory_mbinteger requiredauto_healstring requiredhas_planboolean requiredcpu_coresnumber requiredCap in cores the percent came from on this server (ADR 0126); 0 when given in percent
app_cpu_coresnumber requiredplan_cpu_coresnumber requiredplan_app_cpu_coresnumber requiredserver_cpusinteger requiredLogical processors the server reported; 0 not yet
How often a site was at its caps and what the automatic handling did to it (ADR 0126)
cpu_24hinteger requiredMinutes at ≥ 90% of the CPU cap, last 24 hours
cpu_7dinteger requiredmemory_24hinteger requiredMinutes at ≥ 90% of the memory cap, last 24 hours
memory_7dinteger requiredlast_atstring (date-time) | null requiredlast_kindstring requiredAllowed values:"""cpu""memory"throttled_24hinteger requiredthrottled_7dinteger requiredrecycled_24hinteger requiredrecycled_7dinteger requiredidstring requiredtenant_idstring optionalserver_idstring requiredsite_idstring requiredkindstring requiredAllowed values:"site""service"targetstring requiredHostname or service name
actionstring requiredAllowed values:"throttled""lifted""recycled""restarted""alerted""gave_up"reasonstring requiredcpu, memory or queue
detailstring requiredjob_idstring requiredatstring (date-time) required
throttled_nowboolean required
upgrade_hintboolean requiredThe site follows its plan's caps and reached them in the last 7 days
Example
{
"limits": {
"cpu_percent": 0,
"memory_mb": 0,
"app": true,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"source": "plan",
"plan_cpu_percent": 0,
"plan_memory_mb": 0,
"plan_app_cpu_percent": 0,
"plan_app_memory_mb": 0,
"auto_heal": "string",
"has_plan": true,
"cpu_cores": 0,
"app_cpu_cores": 0,
"plan_cpu_cores": 0,
"plan_app_cpu_cores": 0,
"server_cpus": 0
},
"faults": {
"cpu_24h": 0,
"cpu_7d": 0,
"memory_24h": 0,
"memory_7d": 0,
"last_at": "2026-01-01T00:00:00Z",
"last_kind": "",
"throttled_24h": 0,
"throttled_7d": 0,
"recycled_24h": 0,
"recycled_7d": 0,
"events": [
{
"id": "string",
"tenant_id": "string",
"server_id": "string",
"site_id": "string",
"kind": "site",
"target": "string",
"action": "throttled",
"reason": "string",
"detail": "string",
"job_id": "string",
"at": "2026-01-01T00:00:00Z"
}
],
"throttled_now": true
},
"upgrade_hint": true
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required