pub struct RuleCondition {
pub source: Vec<String>,
pub action_type: Option<String>,
pub verdict: Option<String>,
pub target_pattern: Option<String>,
pub not_target_pattern: Option<String>,
pub after: Option<String>,
pub within: Option<Duration>,
pub bind: String,
}Expand description
A single condition within a correlation rule.
Fields§
§source: Vec<String>Event sources to match (e.g. ["receipt", "hubble"]).
action_type: Option<String>Required action type (e.g. "file", "egress").
verdict: Option<String>Required verdict (e.g. "allow", "deny").
target_pattern: Option<String>Regex pattern that the target must match.
not_target_pattern: Option<String>Regex pattern that the target must not match.
after: Option<String>Bind name of a prior condition that must fire before this one.
within: Option<Duration>Sub-window: maximum time after the after condition fires.
bind: StringBind name for cross-referencing this condition in after and output.evidence.
Trait Implementations§
Source§impl Clone for RuleCondition
impl Clone for RuleCondition
Source§fn clone(&self) -> RuleCondition
fn clone(&self) -> RuleCondition
Returns a duplicate of the value. Read more
1.0.0 · 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 RuleCondition
impl Debug for RuleCondition
Source§impl<'de> Deserialize<'de> for RuleCondition
impl<'de> Deserialize<'de> for RuleCondition
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 RuleCondition
impl RefUnwindSafe for RuleCondition
impl Send for RuleCondition
impl Sync for RuleCondition
impl Unpin for RuleCondition
impl UnsafeUnpin for RuleCondition
impl UnwindSafe for RuleCondition
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