QueryAnalyticsRequest - Go SDK

QueryAnalyticsRequest type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Fields

FieldTypeRequiredDescriptionExample
Dimensions[]stringN/A
Filters[]operations.FilterN/A
Granularity*stringTime granularityday
GroupLimit*int64Maximum rows per distinct combination of dimensions (ClickHouse LIMIT n BY). When omitted on time-series queries (granularity + dimensions), auto-computed to avoid truncating time windows. Explicit values override the default and may truncate time buckets if set lower than the number of buckets in the range. Ignored when no dimensions are specified.100
Limit*int64Maximum total rows returned. Defaults to 1000. On time-series queries with dimensions and no explicit group_limit, the server may raise this to accommodate the expected number of unique time-bucket/dimension combinations.
Metrics[]string✔️N/A
OrderBy*operations.OrderByN/A
TimeRange*operations.TimeRangeN/A