Risk

Struct Risk 

Source
pub struct Risk { /* private fields */ }
Expand description

Fields for describing risk score and risk level of entities such as hosts and users. These fields are not allowed to be nested under event.*. Please continue to use event.risk_score and event.risk_score_norm for event risk.

Implementations§

Source§

impl Risk

Source

pub fn get_calculated_score(&self) -> Option<&f64>

A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring.

Source

pub fn set_calculated_score(&mut self, calculated_score_arg: f64)

A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring.

§Example

880.73

Source

pub fn get_calculated_score_norm(&self) -> Option<&f64>

A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100.

Source

pub fn set_calculated_score_norm(&mut self, calculated_score_norm_arg: f64)

A risk classification score calculated by an internal system as part of entity analytics and entity risk scoring, and normalized to a range of 0 to 100.

§Example

88.73

Source

pub fn get_static_score(&self) -> Option<&f64>

A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform.

Source

pub fn set_static_score(&mut self, static_score_arg: f64)

A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform.

§Example

830.0

Source

pub fn get_static_score_norm(&self) -> Option<&f64>

A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100.

Source

pub fn set_static_score_norm(&mut self, static_score_norm_arg: f64)

A risk classification score obtained from outside the system, such as from some external Threat Intelligence Platform, and normalized to a range of 0 to 100.

§Example

83.0

Source

pub fn get_calculated_level(&self) -> Option<&String>

A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring.

Source

pub fn set_calculated_level(&mut self, calculated_level_arg: String)

A risk classification level calculated by an internal system as part of entity analytics and entity risk scoring.

§Example

High

Source

pub fn get_static_level(&self) -> Option<&String>

A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform.

Source

pub fn set_static_level(&mut self, static_level_arg: String)

A risk classification level obtained from outside the system, such as from some external Threat Intelligence Platform.

§Example

High

Trait Implementations§

Source§

impl Clone for Risk

Source§

fn clone(&self) -> Risk

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Risk

Source§

fn default() -> Risk

Returns the “default value” for a type. Read more
Source§

impl Serialize for Risk

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Risk

§

impl RefUnwindSafe for Risk

§

impl Send for Risk

§

impl Sync for Risk

§

impl Unpin for Risk

§

impl UnwindSafe for Risk

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.