pub struct HuntQuery {
pub sources: Vec<EventSource>,
pub verdict: Option<QueryVerdict>,
pub start: Option<DateTime<Utc>>,
pub end: Option<DateTime<Utc>>,
pub action_type: Option<String>,
pub process: Option<String>,
pub namespace: Option<String>,
pub pod: Option<String>,
pub limit: usize,
pub entity: Option<String>,
}Expand description
Structured query over historical events.
Fields§
§sources: Vec<EventSource>§verdict: Option<QueryVerdict>§start: Option<DateTime<Utc>>§end: Option<DateTime<Utc>>§action_type: Option<String>§process: Option<String>§namespace: Option<String>§pod: Option<String>§limit: usize§entity: Option<String>Implementations§
Source§impl HuntQuery
impl HuntQuery
Sourcepub fn effective_sources(&self) -> Vec<EventSource>
pub fn effective_sources(&self) -> Vec<EventSource>
Returns the effective sources: the configured list, or all sources if empty.
Sourcepub fn matches(&self, event: &TimelineEvent) -> bool
pub fn matches(&self, event: &TimelineEvent) -> bool
Returns true if the event matches ALL active predicates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HuntQuery
impl RefUnwindSafe for HuntQuery
impl Send for HuntQuery
impl Sync for HuntQuery
impl Unpin for HuntQuery
impl UnsafeUnpin for HuntQuery
impl UnwindSafe for HuntQuery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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