id
is the field Orb will use to deduplicate events.customer
property maps to external_customer_id
, and uniquely identifies an Orb customer.download_timestamp
is the timestamp used to bucket events into rollup windowsbytes_downloaded
grouping by download_speed
timestamp
as the start of the aggregation window:
bytes_downloaded
in the original payload translates to sum_bytes_downloaded
in the ingested event, signifying that Orb has automatically summed this field for all events that have download_speed: fast
, in the 10 minute timeframe 2022-08-14T15:10:00.000Z
to 2022-08-14T15:``20``:00.000Z
.
Once these events are ingested, you can then define billable metrics over them, retaining the flexibility to evolve the way you charge without running a backfill.
GROUP BY
over the relevant properties and the grouping.
Orb provides ergonomic syntax for querying over aggregated events as a “view”, abstracting this rollup mechanism away.
For example, the following query: