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.
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.
Implementations§
Trait Implementations§
Source§impl Clone for EventQuery
impl Clone for EventQuery
Source§fn clone(&self) -> EventQuery
fn clone(&self) -> EventQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventQuery
impl Debug for EventQuery
Source§impl Default for EventQuery
impl Default for EventQuery
Source§fn default() -> EventQuery
fn default() -> EventQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventQuery
impl<'de> Deserialize<'de> for EventQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventQuery
impl RefUnwindSafe for EventQuery
impl Send for EventQuery
impl Sync for EventQuery
impl Unpin for EventQuery
impl UnsafeUnpin for EventQuery
impl UnwindSafe for EventQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more