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 \ V1Methods
__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 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 | |
---|---|
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 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |