Package com.azure.compute.batch.models
Class BatchPoolStatistics
java.lang.Object
com.azure.compute.batch.models.BatchPoolStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchPoolStatistics>
public final class BatchPoolStatistics
extends Object
implements com.azure.json.JsonSerializable<BatchPoolStatistics>
Contains utilization and resource usage statistics for the lifetime of a Pool.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchPoolStatistics
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchPoolStatistics from the JsonReader.Get the lastUpdateTime property: The time at which the statistics were last updated.Get the resourceStats property: Statistics related to resource consumption by Compute Nodes in the Pool.Get the startTime property: The start time of the time range covered by the statistics.getUrl()
Get the url property: The URL for the statistics.Get the usageStats property: Statistics related to Pool usage, such as the amount of core-time used.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getUrl
Get the url property: The URL for the statistics.- Returns:
- the url value.
-
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.
-
getUsageStats
Get the usageStats property: Statistics related to Pool usage, such as the amount of core-time used.- Returns:
- the usageStats value.
-
getResourceStats
Get the resourceStats property: Statistics related to resource consumption by Compute Nodes in the Pool.- Returns:
- the resourceStats value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchPoolStatistics>
- Throws:
IOException
-
fromJson
Reads an instance of BatchPoolStatistics from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchPoolStatistics 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 BatchPoolStatistics.
-