pub struct Process {
pub args: Option<Vec<String>>,
pub arguments_truncated: Option<bool>,
pub binary: Option<File>,
pub env_variables: Option<Vec<EnvironmentVariable>>,
pub env_variables_truncated: Option<bool>,
pub libraries: Option<Vec<File>>,
pub name: Option<String>,
pub parent_pid: Option<i64>,
pub pid: Option<i64>,
pub script: Option<File>,
pub user_id: Option<i64>,
}Expand description
Represents an operating system process.
This type is not used in any activity, and only used as part of another schema.
Fields§
§args: Option<Vec<String>>Process arguments as JSON encoded strings.
arguments_truncated: Option<bool>True if args is incomplete.
binary: Option<File>File information for the process executable.
env_variables: Option<Vec<EnvironmentVariable>>Process environment variables.
env_variables_truncated: Option<bool>True if env_variables is incomplete.
libraries: Option<Vec<File>>File information for libraries loaded by the process.
name: Option<String>The process name, as displayed in utilities like top and ps. This name can be accessed through /proc/[pid]/comm and changed with prctl(PR_SET_NAME).
parent_pid: Option<i64>The parent process ID.
pid: Option<i64>The process ID.
script: Option<File>When the process represents the invocation of a script, binary provides information about the interpreter, while script provides information about the script file provided to the interpreter.
user_id: Option<i64>The ID of the user that executed the process. E.g. If this is the root user this will always be 0.