Reference documentation and code samples for the Compute V1 Client class CapacityAdviceResponseRecommendationScores.
Groups information about a shard of capacity.
Generated from protobuf message google.cloud.compute.v1.CapacityAdviceResponseRecommendationScores
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ estimated_uptime |
string
The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions. |
↳ obtainability |
float
The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better. |
getEstimatedUptime
The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasEstimatedUptime
clearEstimatedUptime
setEstimatedUptime
The estimated run time of the majority of Spot VMs in the request before preemption. The estimate is best-effort only. It is based on historical data and current conditions.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getObtainability
The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs.
The score range is 0.0 through 1.0. Higher is better.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasObtainability
clearObtainability
setObtainability
The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs.
The score range is 0.0 through 1.0. Higher is better.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|