Share via


BatchJobScheduleStatistics Class

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

Implements

public final class BatchJobScheduleStatistics
implements JsonSerializable<BatchJobScheduleStatistics>

Resource usage statistics for a Job Schedule.

Method Summary

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

Reads an instance of BatchJobScheduleStatistics from the JsonReader.

long getFailedTasksCount()

Get the failedTasksCount property: The total number of Tasks that failed during the given time range in Jobs created under the schedule.

Duration getKernelCpuTime()

Get the kernelCpuTime property: The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.

OffsetDateTime getLastUpdateTime()

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

double getReadIoGiB()

Get the readIoGiB property: The total gibibytes read from disk by all Tasks in all Jobs created under the schedule.

long getReadIops()

Get the readIops property: The total number of disk read operations made by all Tasks in all Jobs created under the schedule.

OffsetDateTime getStartTime()

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

long getSucceededTasksCount()

Get the succeededTasksCount property: The total number of Tasks successfully completed during the given time range in Jobs created under the schedule.

long getTaskRetriesCount()

Get the taskRetriesCount property: The total number of retries during the given time range on all Tasks in all Jobs created under the schedule.

String getUrl()

Get the url property: The URL of the statistics.

Duration getUserCpuTime()

Get the userCpuTime property: The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.

Duration getWaitTime()

Get the waitTime property: The total wait time of all Tasks in all Jobs created under the schedule.

Duration getWallClockTime()

Get the wallClockTime property: The total wall clock time of all the Tasks in all the Jobs created under the schedule.

double getWriteIoGiB()

Get the writeIoGiB property: The total gibibytes written to disk by all Tasks in all Jobs created under the schedule.

long getWriteIops()

Get the writeIops property: The total number of disk write operations made by all Tasks in all Jobs created under the schedule.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchJobScheduleStatistics fromJson(JsonReader jsonReader)

Reads an instance of BatchJobScheduleStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getFailedTasksCount

public long getFailedTasksCount()

Get the failedTasksCount property: The total number of Tasks that failed during the given time range in Jobs created under the schedule. A Task fails if it exhausts its maximum retry count without returning exit code 0.

Returns:

the failedTasksCount value.

getKernelCpuTime

public Duration getKernelCpuTime()

Get the kernelCpuTime property: The total kernel mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.

Returns:

the kernelCpuTime 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.

getReadIoGiB

public double getReadIoGiB()

Get the readIoGiB property: The total gibibytes read from disk by all Tasks in all Jobs created under the schedule.

Returns:

the readIoGiB value.

getReadIops

public long getReadIops()

Get the readIops property: The total number of disk read operations made by all Tasks in all Jobs created under the schedule.

Returns:

the readIops value.

getStartTime

public OffsetDateTime getStartTime()

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

Returns:

the startTime value.

getSucceededTasksCount

public long getSucceededTasksCount()

Get the succeededTasksCount property: The total number of Tasks successfully completed during the given time range in Jobs created under the schedule. A Task completes successfully if it returns exit code 0.

Returns:

the succeededTasksCount value.

getTaskRetriesCount

public long getTaskRetriesCount()

Get the taskRetriesCount property: The total number of retries during the given time range on all Tasks in all Jobs created under the schedule.

Returns:

the taskRetriesCount value.

getUrl

public String getUrl()

Get the url property: The URL of the statistics.

Returns:

the url value.

getUserCpuTime

public Duration getUserCpuTime()

Get the userCpuTime property: The total user mode CPU time (summed across all cores and all Compute Nodes) consumed by all Tasks in all Jobs created under the schedule.

Returns:

the userCpuTime value.

getWaitTime

public Duration getWaitTime()

Get the waitTime property: The total wait time of all Tasks in all Jobs created under the schedule. The wait time for a Task is defined as the elapsed time between the creation of the Task and the start of Task execution. (If the Task is retried due to failures, the wait time is the time to the most recent Task execution.). This value is only reported in the Account lifetime statistics; it is not included in the Job statistics.

Returns:

the waitTime value.

getWallClockTime

public Duration getWallClockTime()

Get the wallClockTime property: The total wall clock time of all the Tasks in all the Jobs created under the schedule. The wall clock time is the elapsed time from when the Task started running on a Compute Node to when it finished (or to the last time the statistics were updated, if the Task had not finished by then). If a Task was retried, this includes the wall clock time of all the Task retries.

Returns:

the wallClockTime value.

getWriteIoGiB

public double getWriteIoGiB()

Get the writeIoGiB property: The total gibibytes written to disk by all Tasks in all Jobs created under the schedule.

Returns:

the writeIoGiB value.

getWriteIops

public long getWriteIops()

Get the writeIops property: The total number of disk write operations made by all Tasks in all Jobs created under the schedule.

Returns:

the writeIops value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to