pub struct QueryEventsRequest {Show 13 fields
pub entity_id: Option<String>,
pub event_type: Option<String>,
pub tenant_id: Option<String>,
pub as_of: Option<DateTime<Utc>>,
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub as_of_valid: Option<DateTime<Utc>>,
pub since_valid: Option<DateTime<Utc>>,
pub until_valid: Option<DateTime<Utc>>,
pub limit: Option<usize>,
pub event_type_prefix: Option<String>,
pub exclude_event_type_prefix: Option<String>,
pub payload_filter: Option<String>,
}Expand description
DTO for querying events
Fields§
§entity_id: Option<String>Filter by entity ID
event_type: Option<String>Filter by event type
tenant_id: Option<String>Tenant ID (required for multi-tenancy)
as_of: Option<DateTime<Utc>>Time-travel: get events as of this timestamp
since: Option<DateTime<Utc>>Get events since this timestamp
until: Option<DateTime<Utc>>Get events until this timestamp
as_of_valid: Option<DateTime<Utc>>Valid time: keep events whose valid interval contains this instant
(valid_from <= V and valid_to unset or after V). Independent of
as_of, which bounds record time; both may be set and must both hold.
since_valid: Option<DateTime<Utc>>Valid time: keep events whose valid_from is at or after this instant.
until_valid: Option<DateTime<Utc>>Valid time: keep events whose valid_from is at or before this instant.
limit: Option<usize>Limit number of results
event_type_prefix: Option<String>Filter by event type prefix (e.g., “index.” matches “index.created”, “index.updated”)
exclude_event_type_prefix: Option<String>Exclude events whose type starts with ANY of these prefixes
(comma-separated, e.g. "audit.,service.,_system."). Applied before the
limit so excluded events don’t consume the result window — lets callers
drop high-frequency/operational namespaces from a recent-activity feed.
payload_filter: Option<String>Filter by payload fields (JSON string, e.g., {"user_id":"abc-123"}).
Matches events where payload contains ALL specified key-value pairs.