Skip to main content

Module query

Module query 

Source
Expand description

Report queries: which dimensions exist, where each lives, and how filters are read from a URL. Shared by every store.

Structs§

Filter
A filter: a dimension, is, not, or contains, and a value.
Query
What a report reads: a site, a span of time, and filters.

Constants§

EVENT_DIMENSIONS
Dimensions recorded per event, and their columns.
MAX_FILTERS
The most filters a query takes, which keeps every statement within Cloudflare D1’s 100 values.
SESSION_DIMENSIONS
Dimensions recorded once per session, from its first request, and their columns.

Functions§

column_of
The column a dimension lives in.
dimensions
Every dimension a report can break down by: event ones, session ones, then the AI agent fetches, which are their own rows outside visits.
is_dimension
Whether a report can break down by this dimension.
is_event_dimension
Whether the dimension is recorded per event.
is_session_dimension
Whether the dimension is recorded once per session.
parse_filter
dimension:op:value, where the value may itself contain colons.