pub struct EventQuery {
pub kinds: Vec<EventKind>,
pub action_id: Option<String>,
pub proposal_id: Option<String>,
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub data_matches: HashMap<String, String>,
pub limit: Option<usize>,
}Expand description
A structured audit query over the event log (EPIC G / G2). Every field is
an AND-conjoined filter; empty/None fields don’t constrain. Answers
“who ran what tool when, and which approvals applied” by filtering the
SessionScope / PermissionDecision / ApprovalRecorded / action trail.
The multi-word fields also accept the camelCase spellings index.d.ts
documented (actionId, proposalId, dataMatches). Unknown keys are
ignored, so before the aliases a camelCase filter silently matched every
event (car#3395).
Fields§
§kinds: Vec<EventKind>Restrict to these event kinds (empty = any kind).
action_id: Option<String>Exact match on action_id.
proposal_id: Option<String>Exact match on proposal_id.
since: Option<DateTime<Utc>>Inclusive lower time bound.
until: Option<DateTime<Utc>>Exclusive upper time bound.
data_matches: HashMap<String, String>Match events whose data contains ALL these key→value pairs (compared
as strings). Covers caller/tenant/tool/gate/decision, which live in
data on the audit events.
limit: Option<usize>Cap the number of results (most-recent-first). None/0 = unlimited.