Compute V1 Client - Class ManagedInstanceInstanceHealth (1.9.1)

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
NameDescription
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
TypeDescription
string

hasDetailedHealthState

clearDetailedHealthState

setDetailedHealthState

[Output Only] The current detailed instance health state.

Check the DetailedHealthState enum for the list of possible values.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHealthCheck

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

Returns
TypeDescription
string

hasHealthCheck

clearHealthCheck

setHealthCheck

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this