Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord (v4.0.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord.

A record of Spot VM preemption history.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#interval

def interval() -> ::Google::Cloud::Compute::V1::Interval
Returns

#interval=

def interval=(value) -> ::Google::Cloud::Compute::V1::Interval
Parameter
Returns

#preemption_rate

def preemption_rate() -> ::Float
Returns
  • (::Float) — The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).

#preemption_rate=

def preemption_rate=(value) -> ::Float
Parameter
  • value (::Float) — The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).
Returns
  • (::Float) — The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).