Share via


BatchPoolResourceStatistics Class

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

Implements

public final class BatchPoolResourceStatistics
implements JsonSerializable<BatchPoolResourceStatistics>

Statistics related to resource consumption by Compute Nodes in a Pool.

Method Summary

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

Reads an instance of BatchPoolResourceStatistics from the JsonReader.

double getAvgCpuPercentage()

Get the avgCpuPercentage property: The average CPU usage across all Compute Nodes in the Pool (percentage per node).

double getAvgDiskGiB()

Get the avgDiskGiB property: The average used disk space in GiB across all Compute Nodes in the Pool.

double getAvgMemoryGiB()

Get the avgMemoryGiB property: The average memory usage in GiB across all Compute Nodes in the Pool.

double getDiskReadGiB()

Get the diskReadGiB property: The total amount of data in GiB of disk reads across all Compute Nodes in the Pool.

long getDiskReadIops()

Get the diskReadIops property: The total number of disk read operations across all Compute Nodes in the Pool.

double getDiskWriteGiB()

Get the diskWriteGiB property: The total amount of data in GiB of disk writes across all Compute Nodes in the Pool.

long getDiskWriteIops()

Get the diskWriteIops property: The total number of disk write operations across all Compute Nodes in the Pool.

OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time at which the statistics were last updated.

double getNetworkReadGiB()

Get the networkReadGiB property: The total amount of data in GiB of network reads across all Compute Nodes in the Pool.

double getNetworkWriteGiB()

Get the networkWriteGiB property: The total amount of data in GiB of network writes across all Compute Nodes in the Pool.

double getPeakDiskGiB()

Get the peakDiskGiB property: The peak used disk space in GiB across all Compute Nodes in the Pool.

double getPeakMemoryGiB()

Get the peakMemoryGiB property: The peak memory usage in GiB across all Compute Nodes in the Pool.

OffsetDateTime getStartTime()

Get the startTime property: The start time of the time range covered by the statistics.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchPoolResourceStatistics fromJson(JsonReader jsonReader)

Reads an instance of BatchPoolResourceStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchPoolResourceStatistics 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.

getAvgCpuPercentage

public double getAvgCpuPercentage()

Get the avgCpuPercentage property: The average CPU usage across all Compute Nodes in the Pool (percentage per node).

Returns:

the avgCpuPercentage value.

getAvgDiskGiB

public double getAvgDiskGiB()

Get the avgDiskGiB property: The average used disk space in GiB across all Compute Nodes in the Pool.

Returns:

the avgDiskGiB value.

getAvgMemoryGiB

public double getAvgMemoryGiB()

Get the avgMemoryGiB property: The average memory usage in GiB across all Compute Nodes in the Pool.

Returns:

the avgMemoryGiB value.

getDiskReadGiB

public double getDiskReadGiB()

Get the diskReadGiB property: The total amount of data in GiB of disk reads across all Compute Nodes in the Pool.

Returns:

the diskReadGiB value.

getDiskReadIops

public long getDiskReadIops()

Get the diskReadIops property: The total number of disk read operations across all Compute Nodes in the Pool.

Returns:

the diskReadIops value.

getDiskWriteGiB

public double getDiskWriteGiB()

Get the diskWriteGiB property: The total amount of data in GiB of disk writes across all Compute Nodes in the Pool.

Returns:

the diskWriteGiB value.

getDiskWriteIops

public long getDiskWriteIops()

Get the diskWriteIops property: The total number of disk write operations across all Compute Nodes in the Pool.

Returns:

the diskWriteIops value.

getLastUpdateTime

public OffsetDateTime getLastUpdateTime()

Get the lastUpdateTime property: The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime.

Returns:

the lastUpdateTime value.

getNetworkReadGiB

public double getNetworkReadGiB()

Get the networkReadGiB property: The total amount of data in GiB of network reads across all Compute Nodes in the Pool.

Returns:

the networkReadGiB value.

getNetworkWriteGiB

public double getNetworkWriteGiB()

Get the networkWriteGiB property: The total amount of data in GiB of network writes across all Compute Nodes in the Pool.

Returns:

the networkWriteGiB value.

getPeakDiskGiB

public double getPeakDiskGiB()

Get the peakDiskGiB property: The peak used disk space in GiB across all Compute Nodes in the Pool.

Returns:

the peakDiskGiB value.

getPeakMemoryGiB

public double getPeakMemoryGiB()

Get the peakMemoryGiB property: The peak memory usage in GiB across all Compute Nodes in the Pool.

Returns:

the peakMemoryGiB value.

getStartTime

public OffsetDateTime getStartTime()

Get the startTime property: The start time of the time range covered by the statistics.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to