Reference documentation and code samples for the Compute V1 Client class AllocationResourceStatusHealthInfo.
Health information for the reservation.
Generated from protobuf message google.cloud.compute.v1.AllocationResourceStatusHealthInfo
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ degraded_block_count |
int
The number of reservation blocks that are degraded. |
↳ health_status |
string
The health status of the reservation. Check the HealthStatus enum for the list of possible values. |
↳ healthy_block_count |
int
The number of reservation blocks that are healthy. |
getDegradedBlockCount
The number of reservation blocks that are degraded.
Returns | |
---|---|
Type | Description |
int |
hasDegradedBlockCount
clearDegradedBlockCount
setDegradedBlockCount
The number of reservation blocks that are degraded.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getHealthStatus
The health status of the reservation.
Check the HealthStatus enum for the list of possible values.
Returns | |
---|---|
Type | Description |
string |
hasHealthStatus
clearHealthStatus
setHealthStatus
The health status of the reservation.
Check the HealthStatus enum for the list of possible values.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getHealthyBlockCount
The number of reservation blocks that are healthy.
Returns | |
---|---|
Type | Description |
int |
hasHealthyBlockCount
clearHealthyBlockCount
setHealthyBlockCount
The number of reservation blocks that are healthy.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |