Google Cloud Ai Platform V1 Client - Class ExecAction (1.5.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ExecAction.

ExecAction specifies a command to execute.

Generated from protobuf message google.cloud.aiplatform.v1.Probe.ExecAction

Namespace

Google \ Cloud \ AIPlatform \ V1 \ Probe

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ command array

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

getCommand

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.

The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCommand

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.

The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

Parameter
Name Description
var string[]
Returns
Type Description
$this