Google Cloud Ai Platform V1 Client - Class Probe (0.32.0)

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

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ exec Google\Cloud\AIPlatform\V1\Probe\ExecAction

Exec specifies the action to take.

↳ period_seconds int

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.

↳ timeout_seconds int

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.

getExec

Exec specifies the action to take.

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\Probe\ExecAction|null

hasExec

setExec

Exec specifies the action to take.

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\Probe\ExecAction
Returns
TypeDescription
$this

getPeriodSeconds

How often (in seconds) to perform the probe. Default to 10 seconds.

Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.

Returns
TypeDescription
int

setPeriodSeconds

How often (in seconds) to perform the probe. Default to 10 seconds.

Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTimeoutSeconds

Number of seconds after which the probe times out. Defaults to 1 second.

Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.

Returns
TypeDescription
int

setTimeoutSeconds

Number of seconds after which the probe times out. Defaults to 1 second.

Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProbeType

Returns
TypeDescription
string