Compute V1 Client - Class ManagedInstanceInstanceHealth (1.21.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ detailed_health_state string

[Output Only] The current detailed instance health state. Check the DetailedHealthState enum for the list of possible values.

↳ health_check string

[Output Only] The URL for the health check that verifies whether the instance is healthy.

getDetailedHealthState

[Output Only] The current detailed instance health state.

Check the DetailedHealthState enum for the list of possible values.

Returns
Type Description
string

hasDetailedHealthState

clearDetailedHealthState

setDetailedHealthState

[Output Only] The current detailed instance health state.

Check the DetailedHealthState enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getHealthCheck

[Output Only] The URL for the health check that verifies whether the instance is healthy.

Returns
Type Description
string

hasHealthCheck

clearHealthCheck

setHealthCheck

[Output Only] The URL for the health check that verifies whether the instance is healthy.

Parameter
Name Description
var string
Returns
Type Description
$this