Compute V1 Client - Class CompositeHealthCheckHealth (2.9.0)

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

Response message for RegionCompositeHealthChecks.GetHealth

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ health_sources array<CompositeHealthChecksGetHealthResponseHealthSourceHealth>

Health sources and their corresponding health states.

↳ health_state string

Health state of the CompositeHealthCheck. Check the HealthState enum for the list of possible values.

↳ kind string

Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of composite health checks.

getHealthSources

Health sources and their corresponding health states.

Returns
Type Description
Google\Protobuf\RepeatedField<CompositeHealthChecksGetHealthResponseHealthSourceHealth>

setHealthSources

Health sources and their corresponding health states.

Parameter
Name Description
var array<CompositeHealthChecksGetHealthResponseHealthSourceHealth>
Returns
Type Description
$this

getHealthState

Health state of the CompositeHealthCheck.

Check the HealthState enum for the list of possible values.

Returns
Type Description
string

hasHealthState

clearHealthState

setHealthState

Health state of the CompositeHealthCheck.

Check the HealthState enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getKind

Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of composite health checks.

Returns
Type Description
string

hasKind

clearKind

setKind

Output only. [Output Only] Type of resource. Alwayscompute#compositeHealthCheckHealth for the health of composite health checks.

Parameter
Name Description
var string
Returns
Type Description
$this