Compute V1 Client - Class InstanceGroupManagerAutoHealingPolicy (1.5.0)

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.

Generated from protobuf field optional string health_check = 308876645;

Returns
TypeDescription
string

hasHealthCheck

clearHealthCheck

setHealthCheck

The URL for the health check that signals autohealing.

Generated from protobuf field optional string health_check = 308876645;

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].

Generated from protobuf field optional int32 initial_delay_sec = 263207002;

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].

Generated from protobuf field optional int32 initial_delay_sec = 263207002;

Parameter
NameDescription
var int
Returns
TypeDescription
$this