hosting
GET /v1/sites/{siteId}/cdn/statistics
Edge hits, bytes and country breakdown for a site.
Autentifikatsiya
API kalitini bearer token sifatida yuboring. Kalit sites.view ruxsatiga ega boʻlishi shart; ruxsatsiz kalit 404 emas, balki 403 xatosi bilan rad etiladi.
Bu yakuniy nuqta hech qanday tashkilot identifikatorini qabul qilmaydi. Sizning kalitingiz unga tegishli tashkilotni allaqachon aniqlaydi va javob shunga qarab cheklanadi.
Sinab ko'rish
Qavslardagi har qanday narsani o'z qiymatlaringiz bilan, kalit pleysxolderini эsa boshqaruv panelingizdagi kalit bilan almashtiring.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/statistics \
-H "Authorization: Bearer zdk_live_…"Tizimga kirganmisiz? Boshqaruv panelingizdagi API konsoli haqiqiy tashkilot ID raqamingiz va shaxsiy kalitingizni avtomatik to'ldiradi hamda haqiqiy javobni ko'rishingiz uchun so'rovni jonli API orqali bajaradi. Ushbu yakuniy nuqtani API konsolida oching
Tafsilotlar
Points are returned in the vendor's own buckets and in time order, not re-aggregated: re-bucketing would invent numbers the CDN did not measure. Requires `sites.view`.
Parametrlar
| Nomi | Turi | Majburiy | Nima bu |
|---|---|---|---|
siteId (path) | Uuid | Ha | Site ID (UUIDv7). |
window (query) | string<Last24Hours, Last30Days, Last12Months> | Yo'q | Which bucket of hits and bytes to return. |
period (query) | string<Last1Hour, Last24Hours, Last7Days> | Yo'q | Which window the country breakdown covers. ⛔ **A different vocabulary from `window`** — the two vendor endpoints underneath do not share one, and `Last30Days` is a valid `window… |
Javob
| Nomi | Turi | Majburiy | Nima bu |
|---|---|---|---|
window | string | Ha | — |
windows | string[] | Ha | — |
hits | SiteCdnPoint[] | Ha | — |
bytes | SiteCdnPoint[] | Ha | — |
period | string | Ha | The window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts. |
periods | string[] | Ha | — |
countries | SiteCdnCountry[] | Ha | — |
Ushbu yakuniy nuqta qaytarishi mumkin bo'lgan xatolar
401 · 403 · 404 · 422 · 429 · 503