pub enum ResponseCondition {
MinConfidence {
threshold: f64,
},
NotParentedBy {
process_name: String,
},
MinSignalTypes {
count: usize,
},
RepeatCount {
count: usize,
window_secs: u64,
},
TimeWindow {
start_hour: u8,
end_hour: u8,
},
Custom {
name: String,
params: HashMap<String, String>,
},
}Expand description
Response execution conditions.
Variants§
MinConfidence
Confidence score must exceed threshold
NotParentedBy
Process must not be child of specific parent
MinSignalTypes
Incident must involve multiple distinct signals
RepeatCount
Repeated incidents within time window
TimeWindow
Current time must be within window (24-hour clock)
Custom
Custom condition (MUST be pre-registered)
Trait Implementations§
Source§impl Debug for ResponseCondition
impl Debug for ResponseCondition
Source§impl<'de> Deserialize<'de> for ResponseCondition
impl<'de> Deserialize<'de> for ResponseCondition
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 ResponseCondition
impl RefUnwindSafe for ResponseCondition
impl Send for ResponseCondition
impl Sync for ResponseCondition
impl Unpin for ResponseCondition
impl UnsafeUnpin for ResponseCondition
impl UnwindSafe for ResponseCondition
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