Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Process.
Represents an operating system process.
Generated from protobuf message google.cloud.securitycenter.v1.Process
Namespace
Google \ Cloud \ SecurityCenter \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
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)
.
↳ binary
↳ libraries
↳ script
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.
↳ args
array
Process arguments as JSON encoded strings.
↳ arguments_truncated
bool
True if args
is incomplete.
↳ env_variables
↳ env_variables_truncated
bool
True if env_variables
is incomplete.
↳ pid
int|string
The process ID.
↳ parent_pid
int|string
The parent process ID.
getName
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)
.
string
setName
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)
.
var
string
$this
getBinary
File information for the process executable.
hasBinary
clearBinary
setBinary
File information for the process executable.
$this
getLibraries
File information for libraries loaded by the process.
setLibraries
File information for libraries loaded by the process.
$this
getScript
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.
hasScript
clearScript
setScript
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.
$this
getArgs
Process arguments as JSON encoded strings.
setArgs
Process arguments as JSON encoded strings.
var
string[]
$this
getArgumentsTruncated
True if args
is incomplete.
bool
setArgumentsTruncated
True if args
is incomplete.
var
bool
$this
getEnvVariables
Process environment variables.
setEnvVariables
Process environment variables.
$this
getEnvVariablesTruncated
True if env_variables
is incomplete.
bool
setEnvVariablesTruncated
True if env_variables
is incomplete.
var
bool
$this
getPid
The process ID.
int|string
setPid
The process ID.
var
int|string
$this
getParentPid
The parent process ID.
int|string
setParentPid
The parent process ID.
var
int|string
$this