Class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
The Scores message groups information about a shard of capacity.
Instance Attribute Summary collapse
-
#obtainability ⇒ Float
The obtainability score indicates the likelihood of successfully obtaining ( provisioning) the requested number of VMs.
-
#spot_preemption ⇒ Float
[Deprecated] Use uptime_score field instead.
-
#uptime_score ⇒ Float
The uptime score indicates the availability of your Spot VMs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceResponseRecommendationScores
constructor
A new instance of CapacityAdviceResponseRecommendationScores.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityAdviceResponseRecommendationScores
Returns a new instance of CapacityAdviceResponseRecommendationScores.
7415 7416 7417 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7415 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property obtainability
7398 7399 7400 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7398 def obtainability @obtainability end |
#spot_preemption ⇒ Float
[Deprecated] Use uptime_score field instead. The preemption score indicates
the likelihood that your Spot VMs is preempted. For more information about the
preemption process, see Preemption of Spot VMs. The score range is 0.0 through
1.0. Higher is better.
Corresponds to the JSON property spotPreemption
7406 7407 7408 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7406 def spot_preemption @spot_preemption end |
#uptime_score ⇒ Float
The uptime score indicates the availability of your Spot VMs. For more
information about the preemption process, see Preemption of Spot VMs. The
score range is 0.0 through 1.0. Higher is better.
Corresponds to the JSON property uptimeScore
7413 7414 7415 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7413 def uptime_score @uptime_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7420 7421 7422 7423 7424 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7420 def update!(**args) @obtainability = args[:obtainability] if args.key?(:obtainability) @spot_preemption = args[:spot_preemption] if args.key?(:spot_preemption) @uptime_score = args[:uptime_score] if args.key?(:uptime_score) end |