pub enum StreamingEvent {
SecurityEvent {
event: CyberEvent,
timestamp: DateTime<Utc>,
source: String,
},
ReasoningResult {
actions: Vec<SecurityAction>,
execution_time_ms: u64,
event_count: usize,
timestamp: DateTime<Utc>,
},
AnomalyDetected {
score: f64,
threshold: f64,
metric: String,
timestamp: DateTime<Utc>,
},
SystemMetrics {
cpu_usage: f64,
memory_usage: f64,
active_connections: u32,
timestamp: DateTime<Utc>,
},
}Expand description
Streaming event types
Variants§
SecurityEvent
Security event from sensors
ReasoningResult
Reasoning result
Fields
§
actions: Vec<SecurityAction>AnomalyDetected
Anomaly detection result
SystemMetrics
System metrics
Implementations§
Trait Implementations§
Source§impl Clone for StreamingEvent
impl Clone for StreamingEvent
Source§fn clone(&self) -> StreamingEvent
fn clone(&self) -> StreamingEvent
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 StreamingEvent
impl Debug for StreamingEvent
Source§impl<'de> Deserialize<'de> for StreamingEvent
impl<'de> Deserialize<'de> for StreamingEvent
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 StreamingEvent
impl RefUnwindSafe for StreamingEvent
impl Send for StreamingEvent
impl Sync for StreamingEvent
impl Unpin for StreamingEvent
impl UnwindSafe for StreamingEvent
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