compute
GET /v1/compute/servers/{serverId}/metrics
How hard a server has worked over a window — CPU, network and disk rates.
Autentizace
Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.
Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.
Vyzvednout
Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/metrics \
-H "Authorization: Bearer zdk_live_…"Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API
Podrobnosti
Read live from the provider and stored nowhere. window is one of 1h, 24h, 7d or 30d (default 24h); anything else is a 422 naming the four, never widened to the nearest. ⛔ A sample the provider did not have is null — a gap in the line, never zero. ⛔ A quantity this range does not measure is ABSENT from series, which is a different state from a series with no points. 503 on a range with no metrics history (see the compute:metrics_history capability). Requires sites.view.
Parametry
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
serverId (path) | Uuid | Ano | The server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
window (query) | string<1h, 24h, 7d, 30d> | Ne | — |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
window | string<1h, 24h, 7d, 30d> | Ano | — |
step_seconds | integer | Ano | The spacing between samples, as the provider answered it. |
series | object[] | Ano | ⛔ A quantity this range does not measure is absent, not empty. |
Chyby, které může tento koncový bod vrátit
401 · 403 · 404 · 422 · 429 · 503