Share via


BatchPoolUsageMetrics Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchPoolUsageMetrics

Implements

public final class BatchPoolUsageMetrics
implements JsonSerializable<BatchPoolUsageMetrics>

Usage metrics for a Pool across an aggregation interval.

Method Summary

Modifier and Type Method and Description
static BatchPoolUsageMetrics fromJson(JsonReader jsonReader)

Reads an instance of BatchPoolUsageMetrics from the JsonReader.

OffsetDateTime getEndTime()

Get the endTime property: The end time of the aggregation interval covered by this entry.

String getPoolId()

Get the poolId property: The ID of the Pool whose metrics are aggregated in this entry.

OffsetDateTime getStartTime()

Get the startTime property: The start time of the aggregation interval covered by this entry.

double getTotalCoreHours()

Get the totalCoreHours property: The total core hours used in the Pool during this aggregation interval.

String getVmSize()

Get the vmSize property: The size of virtual machines in the Pool.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchPoolUsageMetrics fromJson(JsonReader jsonReader)

Reads an instance of BatchPoolUsageMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchPoolUsageMetrics if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getEndTime

public OffsetDateTime getEndTime()

Get the endTime property: The end time of the aggregation interval covered by this entry.

Returns:

the endTime value.

getPoolId

public String getPoolId()

Get the poolId property: The ID of the Pool whose metrics are aggregated in this entry.

Returns:

the poolId value.

getStartTime

public OffsetDateTime getStartTime()

Get the startTime property: The start time of the aggregation interval covered by this entry.

Returns:

the startTime value.

getTotalCoreHours

public double getTotalCoreHours()

Get the totalCoreHours property: The total core hours used in the Pool during this aggregation interval.

Returns:

the totalCoreHours value.

getVmSize

public String getVmSize()

Get the vmSize property: The size of virtual machines in the Pool. All VMs in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://learn.microsoft.com/azure/batch/batch-pool-vm-sizes).

Returns:

the vmSize value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to