Class: Google::Apis::ComputeAlpha::CapacityAdviceResponseRecommendationScores

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#obtainabilityFloat

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

Returns:

  • (Float)


7398
7399
7400
# File 'lib/google/apis/compute_alpha/classes.rb', line 7398

def obtainability
  @obtainability
end

#spot_preemptionFloat

[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

Returns:

  • (Float)


7406
7407
7408
# File 'lib/google/apis/compute_alpha/classes.rb', line 7406

def spot_preemption
  @spot_preemption
end

#uptime_scoreFloat

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

Returns:

  • (Float)


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