From f16cd2a815789ecb39be15f38342a0bb3afb5917 Mon Sep 17 00:00:00 2001 From: Peter Marshall <42997954+petermarshallio@users.noreply.github.com> Date: Fri, 10 Sep 2021 18:40:11 +0100 Subject: [PATCH] Docs - granularities link back to segmentGranularity (#11672) * Update granularities.md Link-back to the ingestion spec as well as Native queries plus examples. * Update docs/querying/granularities.md Co-authored-by: Charles Smith * Update docs/querying/granularities.md Co-authored-by: Charles Smith --- docs/querying/granularities.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/querying/granularities.md b/docs/querying/granularities.md index 0b4ea534ad2..9c217cb4e44 100644 --- a/docs/querying/granularities.md +++ b/docs/querying/granularities.md @@ -28,9 +28,11 @@ sidebar_label: "Granularities" > language. For information about time functions available in SQL, refer to the > [SQL documentation](sql.md#time-functions). -The granularity field determines how data gets bucketed across the time dimension, or how it gets aggregated by hour, day, minute, etc. +Granularity determines how to bucket data across the time dimension, or how to aggregate data by hour, day, minute, etc. -It can be specified either as a string for simple granularities or as an object for arbitrary granularities. +For example, use time granularities in [native queries](querying.md) to bucket results by time, and in the `dataSchema` \\ [`granularitySpec`](../ingestion/ingestion-spec.md#granularityspec) section of ingestion specifications to segment incoming data. + +You can specify a time period as a [simple](#simple-granularities) string, as a [duration](#duration-granularities) in milliseconds, or as an arbitrary ISO8601 [period](#period-granularities). ### Simple Granularities