pub struct ThreatLog {Show 19 fields
pub name: String,
pub threat_id: String,
pub alert_time: Option<Timestamp>,
pub alert_severity: i32,
pub type: String,
pub category: String,
pub source_ip_address: String,
pub source_port: i32,
pub destination_ip_address: String,
pub destination_port: i32,
pub ip_protocol: String,
pub direction: i32,
pub session_id: String,
pub repeat_count: String,
pub application: String,
pub uri_or_filename: String,
pub cves: Vec<String>,
pub details: String,
pub network: String,
}Expand description
A threat detected by Cloud IDS.
Fields§
§name: StringName of the threat, e,g. “Suspicious HTTP Evasion”
threat_id: StringUnique ID of the threat.
alert_time: Option<Timestamp>The time of the alert.
alert_severity: i32Severity of threat.
type: StringThe type of the threat, e.g. “Spyware”.
category: StringCategory (sub-type) of the threat, e.g. “code-execution”.
source_ip_address: StringThe source IP Address of the packet, e.g. “35.191.8.79”
source_port: i32The source port of the packet, e.g. 8080
destination_ip_address: StringThe destination IP Address of the packet, e.g. “192.168.100.2”
destination_port: i32The destination port of the packet, e.g. 100
ip_protocol: StringThe IP protocol of the packet, e.g. “TCP”.
direction: i32The direction of the packet - an optional field.
session_id: StringID of the Layer 4 session of the threat.
repeat_count: StringNumber of sessions with same source IP, destination IP, application, and type seen within 5 seconds.
application: StringApplication associated with the session.
uri_or_filename: StringVariable field. URI or filename of the relevant threat, if applicable.
cves: Vec<String>CVE IDs of the threat.
details: StringDetails of the threat reported by the IDS VM
network: StringThe network associated with the IDS Endpoint.
Implementations§
source§impl ThreatLog
impl ThreatLog
sourcepub fn direction(&self) -> Direction
pub fn direction(&self) -> Direction
Returns the enum value of direction, or the default if the field is set to an invalid enum value.
sourcepub fn set_direction(&mut self, value: Direction)
pub fn set_direction(&mut self, value: Direction)
Sets direction to the provided enum value.
sourcepub fn alert_severity(&self) -> Severity
pub fn alert_severity(&self) -> Severity
Returns the enum value of alert_severity, or the default if the field is set to an invalid enum value.
sourcepub fn set_alert_severity(&mut self, value: Severity)
pub fn set_alert_severity(&mut self, value: Severity)
Sets alert_severity to the provided enum value.
Trait Implementations§
source§impl Message for ThreatLog
impl Message for ThreatLog
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for ThreatLog
impl PartialEq for ThreatLog
impl StructuralPartialEq for ThreatLog
Auto Trait Implementations§
impl Freeze for ThreatLog
impl RefUnwindSafe for ThreatLog
impl Send for ThreatLog
impl Sync for ThreatLog
impl Unpin for ThreatLog
impl UnwindSafe for ThreatLog
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request