Compute V1 Client - Class InstanceGroupManagerAutoHealingPolicy (1.7.1)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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 number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

getHealthCheck

The URL for the health check that signals autohealing.

Returns
TypeDescription
string

hasHealthCheck

clearHealthCheck

setHealthCheck

The URL for the health check that signals autohealing.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInitialDelaySec

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

Returns
TypeDescription
int

hasInitialDelaySec

clearInitialDelaySec

setInitialDelaySec

The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].

Parameter
NameDescription
var int
Returns
TypeDescription
$this