API referenceSections

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

GET /api/v1/tenants/{tid}/sites/{id}/resource-usage

The 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

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Usage

Content type: application/json

  • limits SiteLimits required
    • cpu_percent integer required
    • memory_mb integer required
    • app boolean required
    • app_cpu_percent integer required
    • app_memory_mb integer required
    • source string required

      internal: the defaults of a site without a plan (ADR 0122)

      Allowed values: "plan" "internal" "custom" "none"
    • plan_cpu_percent integer required

      The plan's caps, or without a plan the internal defaults that inherit gives back

    • plan_memory_mb integer required
    • plan_app_cpu_percent integer required
    • plan_app_memory_mb integer required
    • auto_heal string required
    • has_plan boolean required
    • cpu_cores number required

      Cap in cores the percent came from on this server (ADR 0126); 0 when given in percent

    • app_cpu_cores number required
    • plan_cpu_cores number required
    • plan_app_cpu_cores number required
    • server_cpus integer required

      Logical processors the server reported; 0 not yet

  • faults SiteFaults required

    How often a site was at its caps and what the automatic handling did to it (ADR 0126)

    • cpu_24h integer required

      Minutes at ≥ 90% of the CPU cap, last 24 hours

    • cpu_7d integer required
    • memory_24h integer required

      Minutes at ≥ 90% of the memory cap, last 24 hours

    • memory_7d integer required
    • last_at string (date-time) | null required
    • last_kind string required
      Allowed values: "" "cpu" "memory"
    • throttled_24h integer required
    • throttled_7d integer required
    • recycled_24h integer required
    • recycled_7d integer required
    • events array<AutoHealAction> required
      • id string required
      • tenant_id string optional
      • server_id string required
      • site_id string required
      • kind string required
        Allowed values: "site" "service"
      • target string required

        Hostname or service name

      • action string required
        Allowed values: "throttled" "lifted" "recycled" "restarted" "alerted" "gave_up"
      • reason string required

        cpu, memory or queue

      • detail string required
      • job_id string required
      • at string (date-time) required
    • throttled_now boolean required
  • upgrade_hint boolean required

    The 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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required