Interface CapacityHistoryResponsePreemptionRecordOrBuilder (1.109.0)

public interface CapacityHistoryResponsePreemptionRecordOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInterval()

public abstract Interval getInterval()

The time interval for this preemption record.

optional .google.cloud.compute.v1.Interval interval = 33547461;

Returns
Type Description
Interval

The interval.

getIntervalOrBuilder()

public abstract IntervalOrBuilder getIntervalOrBuilder()

The time interval for this preemption record.

optional .google.cloud.compute.v1.Interval interval = 33547461;

Returns
Type Description
IntervalOrBuilder

getPreemptionRate()

public abstract double getPreemptionRate()

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).

optional double preemption_rate = 140651910;

Returns
Type Description
double

The preemptionRate.

hasInterval()

public abstract boolean hasInterval()

The time interval for this preemption record.

optional .google.cloud.compute.v1.Interval interval = 33547461;

Returns
Type Description
boolean

Whether the interval field is set.

hasPreemptionRate()

public abstract boolean hasPreemptionRate()

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).

optional double preemption_rate = 140651910;

Returns
Type Description
boolean

Whether the preemptionRate field is set.