hosting
GET /v1/sites/{siteId}/cdn/statistics
Edge hits, bytes and country breakdown for a site.
احراز هویت
یک کلید API را به عنوان یک توکن حامل ارسال کنید. این کلید باید دارای مجوز sites.view باشد؛ کلیدی که فاقد آن باشد با خطای 403 رد میشود، نه 404.
این نقطه پایانی هیچ شناسه سازمانی را دریافت نمیکند. کلید شما در حال حاضر سازمان مربوطه را مشخص میکند و پاسخ در همان محدوده ارائه میشود.
امتحان کنید
هر چیزی را که داخل براکتهای زاویهدار قرار دارد با مقادیر خودتان جایگزین کنید، و نگهدارنده کلید را با کلیدی از داشبورد خود جایگزین نمایید.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/statistics \
-H "Authorization: Bearer zdk_live_…"وارد شدهاید؟ کنسول API در داشبورد شما شناسه سازمان واقعی و کلید خودتان را پر میکند و درخواست را روی API زنده اجرا میکند تا بتوانید پاسخ واقعی را ببینید. این نقطه پایانی را در کنسول API باز کنید
جزئیات
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`.
پارامترها
| نام | نوع | الزامی | چیست |
|---|---|---|---|
siteId (path) | Uuid | بله | Site ID (UUIDv7). |
window (query) | string<Last24Hours, Last30Days, Last12Months> | خیر | Which bucket of hits and bytes to return. |
period (query) | string<Last1Hour, Last24Hours, Last7Days> | خیر | 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… |
پاسخ
| نام | نوع | الزامی | چیست |
|---|---|---|---|
window | string | بله | — |
windows | string[] | بله | — |
hits | SiteCdnPoint[] | بله | — |
bytes | SiteCdnPoint[] | بله | — |
period | string | بله | The window the country breakdown covers, or empty when the requested `period` is not one this vendor endpoint accepts. |
periods | string[] | بله | — |
countries | SiteCdnCountry[] | بله | — |
خطاهایی که این نقطه پایانی میتواند برگرداند
401 · 403 · 404 · 422 · 429 · 503