Package com.azure.compute.batch.models
Class BatchPoolResourceStatistics
java.lang.Object
com.azure.compute.batch.models.BatchPoolResourceStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchPoolResourceStatistics>
public final class BatchPoolResourceStatistics
extends Object
implements com.azure.json.JsonSerializable<BatchPoolResourceStatistics>
Statistics related to resource consumption by Compute Nodes in a Pool.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchPoolResourceStatisticsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchPoolResourceStatistics from the JsonReader.doubleGet the avgCpuPercentage property: The average CPU usage across all Compute Nodes in the Pool (percentage per node).doubleGet the avgDiskGiB property: The average used disk space in GiB across all Compute Nodes in the Pool.doubleGet the avgMemoryGiB property: The average memory usage in GiB across all Compute Nodes in the Pool.doubleGet the diskReadGiB property: The total amount of data in GiB of disk reads across all Compute Nodes in the Pool.longGet the diskReadIOps property: The total number of disk read operations across all Compute Nodes in the Pool.doubleGet the diskWriteGiB property: The total amount of data in GiB of disk writes across all Compute Nodes in the Pool.longGet the diskWriteIOps property: The total number of disk write operations across all Compute Nodes in the Pool.Get the lastUpdateTime property: The time at which the statistics were last updated.doubleGet the networkReadGiB property: The total amount of data in GiB of network reads across all Compute Nodes in the Pool.doubleGet the networkWriteGiB property: The total amount of data in GiB of network writes across all Compute Nodes in the Pool.doubleGet the peakDiskGiB property: The peak used disk space in GiB across all Compute Nodes in the Pool.doubleGet the peakMemoryGiB property: The peak memory usage in GiB across all Compute Nodes in the Pool.Get the startTime property: The start time of the time range covered by the statistics.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getStartTime
Get the startTime property: The start time of the time range covered by the statistics.- Returns:
- the startTime value.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchPoolResourceStatistics>- Throws:
IOException
-
fromJson
public static BatchPoolResourceStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BatchPoolResourceStatistics.
-