compute
GET /v1/compute/servers/{serverId}/metrics
How hard a server has worked over a window — CPU, network and disk rates.
Πισtoποίηση
Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα sites.view· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.
Αυτό το τελικό σημείο δεν δέχεται αναγνωριστικό οργανισμού. Το κλειδί σας προσδιορίζει ήδη τον οργανισμό στον οποίο ανήκει, και η απάντηση περιορίζεται σε αυτόν.
Δοκιμάστε το
Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/metrics \
-H "Authorization: Bearer zdk_live_…"Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API
Λεπτομέρειες
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.
Παράμετροι
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
serverId (path) | Uuid | Ναι | 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> | Όχι | — |
Απάντηση
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
window | string<1h, 24h, 7d, 30d> | Ναι | — |
step_seconds | integer | Ναι | The spacing between samples, as the provider answered it. |
series | object[] | Ναι | ⛔ A quantity this range does not measure is absent, not empty. |
Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο
401 · 403 · 404 · 422 · 429 · 503