[][src]Struct grapl_graph_descriptions::graph_description::ProcessDescription

pub struct ProcessDescription {
    pub node_key: String,
    pub asset_id: Option<String>,
    pub hostname: Option<String>,
    pub host_ip: Option<String>,
    pub state: u32,
    pub process_id: u64,
    pub process_guid: String,
    pub created_timestamp: u64,
    pub terminated_timestamp: u64,
    pub last_seen_timestamp: u64,
    pub process_name: String,
    pub process_command_line: String,
    pub process_integrity_level: String,
    pub operating_system: String,
}

Fields

node_key: Stringasset_id: Option<String>hostname: Option<String>host_ip: Option<String>state: u32process_id: u64process_guid: Stringcreated_timestamp: u64

When state == 1, create_time When state == 2, end_time When state == 3, seen_time

terminated_timestamp: u64last_seen_timestamp: u64process_name: Stringprocess_command_line: Stringprocess_integrity_level: String

integrity level is a Windows only concept

operating_system: String

Methods

impl ProcessDescription[src]

pub fn new(
    asset_id: impl Into<Option<String>>,
    hostname: impl Into<Option<String>>,
    host_ip: impl Into<Option<String>>,
    state: ProcessState,
    process_id: u64,
    timestamp: u64,
    process_name: String,
    operating_system: String,
    process_command_line: String,
    process_guid: String,
    process_integrity_level: String
) -> ProcessDescription
[src]

pub fn get_key(&self) -> &str[src]

pub fn set_key(&mut self, key: String)[src]

pub fn set_asset_id(&mut self, asset_id: String)[src]

pub fn get_asset_id(&self) -> Option<&String>[src]

pub fn clone_key(&self) -> String[src]

pub fn into_json(self) -> Value[src]

pub fn merge(&mut self, other: &Self)[src]

pub fn timestamp(&self) -> u64[src]

impl ProcessDescription[src]

pub fn asset_id(&self) -> &str[src]

Trait Implementations

impl From<ProcessDescription> for NodeDescription[src]

impl PartialEq<ProcessDescription> for ProcessDescription[src]

impl Clone for ProcessDescription[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ProcessDescription[src]

impl Eq for ProcessDescription[src]

impl Debug for ProcessDescription[src]

impl Message for ProcessDescription[src]

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
    B: BufMut
[src]

Encodes the message to a buffer. Read more

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
    B: BufMut
[src]

Encodes the message with a length-delimiter to a buffer. Read more

fn decode<B>(buf: B) -> Result<Self, DecodeError> where
    B: IntoBuf,
    Self: Default
[src]

Decodes an instance of the message from a buffer. Read more

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
    B: IntoBuf,
    Self: Default
[src]

Decodes a length-delimited instance of the message from the buffer.

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
    B: IntoBuf
[src]

Decodes an instance of the message from a buffer, and merges it into self. Read more

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
    B: IntoBuf
[src]

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

impl Serialize for ProcessDescription[src]

impl<'de> Deserialize<'de> for ProcessDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]