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 Details

    • getUrl

      public String getUrl()
      Get the url property: The URL for the statistics.
      Returns:
      the url value.
    • getStartTime

      public OffsetDateTime getStartTime()
      Get the startTime property: The start time of the time range covered by the statistics.
      Returns:
      the startTime 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.
    • getUsageStats

      public BatchPoolUsageStatistics getUsageStats()
      Get the usageStats property: Statistics related to Pool usage, such as the amount of core-time used.
      Returns:
      the usageStats value.
    • getResourceStats

      public BatchPoolResourceStatistics getResourceStats()
      Get the resourceStats property: Statistics related to resource consumption by Compute Nodes in the Pool.
      Returns:
      the resourceStats value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BatchPoolStatistics>
      Throws:
      IOException
    • fromJson

      public static BatchPoolStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.