Share via


BatchPoolStatistics Class

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

Implements

public final class BatchPoolStatistics
implements JsonSerializable<BatchPoolStatistics>

Contains utilization and resource usage statistics for the lifetime of a Pool.

Method Summary

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

Reads an instance of BatchPoolStatistics from the JsonReader.

OffsetDateTime getLastUpdateTime()

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

BatchPoolResourceStatistics getResourceStatistics()

Get the resourceStatistics property: Statistics related to resource consumption by Compute Nodes in the Pool.

OffsetDateTime getStartTime()

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

String getUrl()

Get the url property: The URL for the statistics.

BatchPoolUsageStatistics getUsageStatistics()

Get the usageStatistics property: Statistics related to Pool usage, such as the amount of core-time used.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchPoolStatistics fromJson(JsonReader jsonReader)

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:

IOException

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

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.

getResourceStatistics

public BatchPoolResourceStatistics getResourceStatistics()

Get the resourceStatistics property: Statistics related to resource consumption by Compute Nodes in the Pool.

Returns:

the resourceStatistics value.

getStartTime

public OffsetDateTime getStartTime()

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

Returns:

the startTime value.

getUrl

public String getUrl()

Get the url property: The URL for the statistics.

Returns:

the url value.

getUsageStatistics

public BatchPoolUsageStatistics getUsageStatistics()

Get the usageStatistics property: Statistics related to Pool usage, such as the amount of core-time used.

Returns:

the usageStatistics value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to