Type Alias: ActivityWindowBasis
ActivityWindowBasis = typeof
ActivityWindowBasis[keyof typeofActivityWindowBasis]
Defined in: packages/sdk/src/types/generated/activity_feed.ts:862
Whose clock the window's two bounds are written in.
The bounds are wall-clock designations either way; what differs is whose wall clock, and therefore what they mean when a query has to reach the other side of the rollup/log seam.
ABSOLUTE — the offset the caller wrote. One instant pair for every
workspace the query touches. This is what a client asks for, and it is the
default, so nothing about an ordinary request changes.
WORKSPACE_LOCAL — each workspace's own clock, which is the clock
activity_rollup_hourly.bucket_hour is a label in. Only the server
issues this, on the drill query it attaches to an aggregate line: that
line was computed from local-calendar buckets, so the window that reproduces
it is a span of local labels rather than a span of instants. The offset
written on the bounds is not part of the meaning and is emitted as Z.
Before this existed, a drill emitted its local bucket boundary with a Z
on it and the leaf grain read it as an instant — so every drill in a
non-UTC workspace queried the wrong hours and returned nothing. One field
with two silent meanings is what made that possible; the meaning is now
written down.