--- title: "العمل مع accountMetrics > Granularity" slug: "working-with-accountmetrics-granularity" updated: 2026-07-30T02:26:26Z published: 2026-07-30T02:26:26Z canonical: "knowledge.catonetworks.com/working-with-accountmetrics-granularity" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.catonetworks.com/llms.txt > Use this file to discover all available pages before exploring further. # العمل مع accountMetrics > Granularity تتناول هذه المقالة كيفية تكوين الوسيطات **accountMetrics > timeFrame** و**accountMetrics > timeSeries > buckets** للتحكم في حقول Granularity ومدة الوقت لكل دلو من البيانات. ## العمل مع حقل Granularity لمكالمات API تُرجع مكالمة API لـ accountMetrics بيانات الحساب للإطار الزمني المحدد ويتم تقسيمها إلى عدد من الدلاء. كل دلو له نفس Granularity أو مدة الوقت. يتم حساب Granularity وفق الصيغة التالية: timeFrame/buckets. يجلب خادم API البيانات كل 5 ثوانٍ، لذا فإن القيمة الدنيا لـ Granularity هي 5. إذا كانت Granularity أقل من 5، فإن بعض الدلاء ستُرجع بيانات فارغة (القيمة 0). ## مثال على مكالمة API مع بيانات لكل دلو - قم بتعيين وسيط **accountMetrics > timeFrame** إلى `last.PT2H` (ساعتان، أو 7200 ثانية) - قم بتعيين وسيط **accountMetrics > timeSeries > buckets** إلى 80 - يظهر حقل الحساب **Metrics > Granularity** أن مدة الوقت لكل دلو هي 90 ثانية (7200 / 80)