Compute V1 Client - Class InstanceGroupManagerAutoHealingPolicy (1.18.1)

Reference documentation and code samples for the Compute V1 Client class InstanceGroupManagerAutoHealingPolicy.

Generated from protobuf message google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ health_check string

The URL for the health check that signals autohealing.

↳ initial_delay_sec int

The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.

getHealthCheck

The URL for the health check that signals autohealing.

Returns
Type Description
string

hasHealthCheck

clearHealthCheck

setHealthCheck

The URL for the health check that signals autohealing.

Parameter
Name Description
var string
Returns
Type Description
$this

getInitialDelaySec

The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.

Returns
Type Description
int

hasInitialDelaySec

clearInitialDelaySec

setInitialDelaySec

The initial delay is the number of seconds that a new VM takes to initialize and run its startup script. During a VM's initial delay period, the MIG ignores unsuccessful health checks because the VM might be in the startup process. This prevents the MIG from prematurely recreating a VM. If the health check receives a healthy response during the initial delay, it indicates that the startup process is complete and the VM is ready. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.

Parameter
Name Description
var int
Returns
Type Description
$this