public sealed class CapacityHistoryResponsePreemptionRecord : IMessage<CapacityHistoryResponsePreemptionRecord>, IEquatable<CapacityHistoryResponsePreemptionRecord>, IDeepCloneable<CapacityHistoryResponsePreemptionRecord>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class CapacityHistoryResponsePreemptionRecord.
A record of Spot VM preemption history.
Implements
IMessageCapacityHistoryResponsePreemptionRecord, IEquatableCapacityHistoryResponsePreemptionRecord, IDeepCloneableCapacityHistoryResponsePreemptionRecord, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
CapacityHistoryResponsePreemptionRecord()
public CapacityHistoryResponsePreemptionRecord()CapacityHistoryResponsePreemptionRecord(CapacityHistoryResponsePreemptionRecord)
public CapacityHistoryResponsePreemptionRecord(CapacityHistoryResponsePreemptionRecord other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityHistoryResponsePreemptionRecord |
Properties
HasPreemptionRate
public bool HasPreemptionRate { get; }Gets whether the "preemption_rate" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Interval
public Interval Interval { get; set; }The time interval for this preemption record.
| Property Value | |
|---|---|
| Type | Description |
Interval |
|
PreemptionRate
public double PreemptionRate { get; set; }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).
| Property Value | |
|---|---|
| Type | Description |
double |
|