Package com.azure.compute.batch.models
Class BatchJobScheduleStatistics
java.lang.Object
com.azure.compute.batch.models.BatchJobScheduleStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobScheduleStatistics>
public final class BatchJobScheduleStatistics
extends Object
implements com.azure.json.JsonSerializable<BatchJobScheduleStatistics>
Resource usage statistics for a Job Schedule.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchJobScheduleStatistics
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobScheduleStatistics from the JsonReader.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.Get the lastUpdateTime property: The time at which the statistics were last updated.long
Get the numFailedTasks property: The total number of Tasks that failed during the given time range in Jobs created under the schedule.long
Get the numSucceededTasks property: The total number of Tasks successfully completed during the given time range in Jobs created under the schedule.long
Get the numTaskRetries property: The total number of retries during the given time range on all Tasks in all Jobs created under the schedule.double
Get the readIOGiB property: The total gibibytes read from disk by all Tasks in all Jobs created under the schedule.long
Get the readIOps property: The total number of disk read operations made by all Tasks in all Jobs created under the schedule.Get the startTime property: The start time of the time range covered by the statistics.getUrl()
Get the url property: The URL of the statistics.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.Get the waitTime property: The total wait time of all Tasks in all Jobs created under the schedule.Get the wallClockTime property: The total wall clock time of all the Tasks in all the Jobs created under the schedule.double
Get the writeIOGiB property: The total gibibytes written to disk by all Tasks in all Jobs created under the schedule.long
Get the writeIOps property: The total number of disk write operations made by all Tasks in all Jobs created under the schedule.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 of 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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getNumSucceededTasks
public long getNumSucceededTasks()Get the numSucceededTasks 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 numSucceededTasks value.
-
getNumFailedTasks
public long getNumFailedTasks()Get the numFailedTasks 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 numFailedTasks value.
-
getNumTaskRetries
public long getNumTaskRetries()Get the numTaskRetries property: The total number of retries during the given time range on all Tasks in all Jobs created under the schedule.- Returns:
- the numTaskRetries value.
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchJobScheduleStatistics>
- Throws:
IOException
-
fromJson
public static BatchJobScheduleStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the BatchJobScheduleStatistics.
-