Querying Data
The SDK provides fluent query builders for listing events, retrieving aggregated usage, and checking service health.List Events
Query ingested events with optional filters. The builder pattern lets you chain only the filters you need:Response Fields
| Field | Type | Description |
|---|---|---|
events | Vec | List of matching events |
total | u64 | Total number of matching events |
limit | u64 | Page size |
offset | u64 | Current offset |
has_more | bool | Whether more pages are available |
Pagination
Uselimit and offset to page through results:
Query Usage
Retrieve aggregated usage data for a given time range:Response Fields
| Field | Type | Description |
|---|---|---|
organization_id | String | Your organization ID |
event_name | String | The event type queried |
start | String | Start of the time range |
end | String | End of the time range |
total_count | u64 | Total event count in the range |
breakdown | Vec | Daily or bucketed usage breakdown |