| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for license information. |
| | 3 | | // |
| | 4 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 5 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 6 | | // regenerated. |
| | 7 | |
|
| | 8 | | // |
| | 9 | | // This file was autogenerated by a tool. |
| | 10 | | // Do not modify it. |
| | 11 | | // |
| | 12 | |
|
| | 13 | | namespace Microsoft.Azure.Batch |
| | 14 | | { |
| | 15 | | using Models = Microsoft.Azure.Batch.Protocol.Models; |
| | 16 | | using System; |
| | 17 | | using System.Collections.Generic; |
| | 18 | | using System.Linq; |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Resource usage statistics for the job. |
| | 22 | | /// </summary> |
| | 23 | | public partial class JobStatistics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 506 | 27 | | internal JobStatistics(Models.JobStatistics protocolObject) |
| | 28 | | { |
| 506 | 29 | | this.FailedTaskCount = protocolObject.NumFailedTasks; |
| 506 | 30 | | this.KernelCpuTime = protocolObject.KernelCPUTime; |
| 506 | 31 | | this.LastUpdateTime = protocolObject.LastUpdateTime; |
| 506 | 32 | | this.ReadIOGiB = protocolObject.ReadIOGiB; |
| 506 | 33 | | this.ReadIOps = protocolObject.ReadIOps; |
| 506 | 34 | | this.StartTime = protocolObject.StartTime; |
| 506 | 35 | | this.SucceededTaskCount = protocolObject.NumSucceededTasks; |
| 506 | 36 | | this.TaskRetryCount = protocolObject.NumTaskRetries; |
| 506 | 37 | | this.Url = protocolObject.Url; |
| 506 | 38 | | this.UserCpuTime = protocolObject.UserCPUTime; |
| 506 | 39 | | this.WaitTime = protocolObject.WaitTime; |
| 506 | 40 | | this.WallClockTime = protocolObject.WallClockTime; |
| 506 | 41 | | this.WriteIOGiB = protocolObject.WriteIOGiB; |
| 506 | 42 | | this.WriteIOps = protocolObject.WriteIOps; |
| 506 | 43 | | } |
| | 44 | |
|
| | 45 | | #endregion Constructors |
| | 46 | |
|
| | 47 | | #region JobStatistics |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the total number of task failures in the job. |
| | 51 | | /// </summary> |
| 506 | 52 | | public long FailedTaskCount { get; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets the total kernel mode CPU time (per core) consumed by all tasks in the job. |
| | 56 | | /// </summary> |
| 506 | 57 | | public TimeSpan KernelCpuTime { get; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Gets the time at which the statistics were last updated. All statistics are limited to the range between <se |
| | 61 | | /// cref="StartTime"/> and this value. |
| | 62 | | /// </summary> |
| 506 | 63 | | public DateTime LastUpdateTime { get; } |
| | 64 | |
|
| | 65 | | /// <summary> |
| | 66 | | /// Gets the total gibibytes of I/O read from disk by all tasks in the job. |
| | 67 | | /// </summary> |
| 506 | 68 | | public double ReadIOGiB { get; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets the total number of disk read operations made by all tasks in the job. |
| | 72 | | /// </summary> |
| 506 | 73 | | public long ReadIOps { get; } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// Gets the start time of the time range covered by the statistics. |
| | 77 | | /// </summary> |
| 506 | 78 | | public DateTime StartTime { get; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets the total number of tasks successfully completed in the job during the given time range. |
| | 82 | | /// </summary> |
| 506 | 83 | | public long SucceededTaskCount { get; } |
| | 84 | |
|
| | 85 | | /// <summary> |
| | 86 | | /// Gets the total number of task retries in the job. |
| | 87 | | /// </summary> |
| 506 | 88 | | public long TaskRetryCount { get; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets the URL of the job statistics. |
| | 92 | | /// </summary> |
| 506 | 93 | | public string Url { get; } |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Gets the total user mode CPU time (per core) consumed by all tasks in the job. |
| | 97 | | /// </summary> |
| 506 | 98 | | public TimeSpan UserCpuTime { get; } |
| | 99 | |
|
| | 100 | | /// <summary> |
| | 101 | | /// Gets the total wait time of all tasks in the job. The wait time for a task is defined as the elapsed time be |
| | 102 | | /// the creation of the task and the start of task execution. (If the task is retried due to failures, the wait |
| | 103 | | /// is the time to the most recent task execution.) |
| | 104 | | /// </summary> |
| | 105 | | /// <remarks> |
| | 106 | | /// This value is only reported in the account lifetime statistics. |
| | 107 | | /// </remarks> |
| 506 | 108 | | public TimeSpan WaitTime { get; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets the total elapsed time. |
| | 112 | | /// </summary> |
| 506 | 113 | | public TimeSpan WallClockTime { get; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets the total gibibytes of I/O written to disk by all tasks in the job. |
| | 117 | | /// </summary> |
| 506 | 118 | | public double WriteIOGiB { get; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets the total number of disk write operations made by all tasks in the job. |
| | 122 | | /// </summary> |
| 506 | 123 | | public long WriteIOps { get; } |
| | 124 | |
|
| | 125 | | #endregion // JobStatistics |
| | 126 | |
|
| | 127 | | #region IPropertyMetadata |
| | 128 | |
|
| | 129 | | bool IModifiable.HasBeenModified |
| | 130 | | { |
| | 131 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 132 | | get { return false; } |
| | 133 | | } |
| | 134 | |
|
| | 135 | | bool IReadOnly.IsReadOnly |
| | 136 | | { |
| 0 | 137 | | get { return true; } |
| | 138 | | set |
| | 139 | | { |
| | 140 | | // This class is compile time readonly already |
| 506 | 141 | | } |
| | 142 | | } |
| | 143 | |
|
| | 144 | | #endregion // IPropertyMetadata |
| | 145 | | } |
| | 146 | | } |