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
- (::Google::Cloud::Compute::V1::Interval) — The time interval for this preemption record.
#interval=
def interval=(value) -> ::Google::Cloud::Compute::V1::Interval
Parameter
- value (::Google::Cloud::Compute::V1::Interval) — The time interval for this preemption record.
Returns
- (::Google::Cloud::Compute::V1::Interval) — The time interval for this preemption record.
#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).