event

range_time

Read a range of events by occurrence time.

strata event range-time

wire event_range_by_time

Reads events from the selected branch and space whose append timestamps fall inside a half-open `[start_ts, end_ts)` microsecond window - the start is inclusive and the end is exclusive, matching the sequence-addressed range. This queries when events occurred; historical log states are the timestamped read commands' job. An optional event type narrows the results.

Paginated responses use opaque cursors. Clients should pass the returned cursor back to the same command shape and must not parse cursor contents.

To see the complete help for this command, run:

strata event range-time --help

Example

Read a range of events by timestamp.

strata event append user.created {"id":1}strata event append user.updated {"id":2}strata event range-time 0 --direction forward

Parameters

NameTypeRequiredDescription
directionEventRangeDirectionyesResult ordering.one of: forward, reverse
start_tsintegeryesInclusive start timestamp in microseconds.
branchstring or nullnoTarget branch. Defaults to the executor handle branch.
end_tsinteger or nullnoOptional exclusive end timestamp in microseconds (half-open window, matching the sequence-addressed range's exclusive end).
event_typestring or nullnoOptional event type filter.
limitinteger or nullnoOptional item limit.
spacestring or nullnoTarget product space. Defaults to `"default"`.

Returns

Page<EventVersionedData, u64>

  • dataobject

    Shared pagination continuation facts.

  • typestring

Errors

Recover by code. Retry policy and commit outcome come from the shipped error registry.

← All 10 Events commands

agents: this page as markdown → /docs/reference/event/range_time.md