--- title: "アカウントメトリクス > 粒度の操作" slug: "working-with-accountmetrics-granularity" updated: 2026-07-30T01:21:29Z published: 2026-07-30T01:21:29Z 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 > timeFrame**と**accountMetrics > timeSeries > バケット**引数を設定し、粒度フィールドや各データバケットの時間期間を管理する方法を説明します。 ## APIコールの粒度項目操作 accountMetrics APIコールは、指定された時間枠のアカウントデータを返し、それはバケットの数に分けられます。 各バケットは同じ粒度、または時間期間を持ちます。 粒度は、以下の公式により計算されます: timeFrame/バケット。 APIサーバーは5秒ごとにデータを取得するので、最小の粒度は5です。 粒度が5未満の場合、いくつかのバケットはデータを返さない(値0)。 ## バケットごとのデータを含むサンプルAPIコール - **accountMetrics > timeFrame**引数を`last.PT2H`(2時間、または7200秒)に設定します - **accountMetrics > timeSeries > バケット**引数を80に設定します - アカウント**メトリック > 粒度**項目は各バケットの時間期間が90秒(7200 / 80)であることを示します