#[non_exhaustive]pub struct DetectionRule {Show 13 fields
pub id: String,
pub rule_id: String,
pub name: String,
pub description: String,
pub enabled: bool,
pub severity: String,
pub risk_score: f64,
pub rule_type: String,
pub query: Option<String>,
pub tags: Vec<String>,
pub updated_at: Option<String>,
pub execution_summary: Option<RuleExecutionSummary>,
pub extra: Map<String, Value>,
}Expand description
A detection rule returned by Kibana. Type-specific fields are retained in extra.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringKibana saved-object ID, used by RuleSelector::Id.
rule_id: StringStable rule identifier used by RuleSelector::RuleId and exports/imports.
name: String§description: String§enabled: bool§severity: String§risk_score: f64§rule_type: String§query: Option<String>§updated_at: Option<String>§execution_summary: Option<RuleExecutionSummary>§extra: Map<String, Value>Type-specific and newer fields, including exceptions_list.
Trait Implementations§
Source§impl Clone for DetectionRule
impl Clone for DetectionRule
Source§impl Debug for DetectionRule
impl Debug for DetectionRule
Source§impl<'de> Deserialize<'de> for DetectionRule
impl<'de> Deserialize<'de> for DetectionRule
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 DetectionRule
impl RefUnwindSafe for DetectionRule
impl Send for DetectionRule
impl Sync for DetectionRule
impl Unpin for DetectionRule
impl UnsafeUnpin for DetectionRule
impl UnwindSafe for DetectionRule
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