| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.Batch.Protocol.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Resource usage statistics for a Job. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class JobStatistics |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the JobStatistics class. |
| | | 23 | | /// </summary> |
| | 506 | 24 | | public JobStatistics() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 506 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the JobStatistics class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="url">The URL of the statistics.</param> |
| | | 33 | | /// <param name="startTime">The start time of the time range covered by |
| | | 34 | | /// the statistics.</param> |
| | | 35 | | /// <param name="lastUpdateTime">The time at which the statistics were |
| | | 36 | | /// last updated. All statistics are limited to the range between |
| | | 37 | | /// startTime and lastUpdateTime.</param> |
| | | 38 | | /// <param name="userCPUTime">The total user mode CPU time (summed |
| | | 39 | | /// across all cores and all Compute Nodes) consumed by all Tasks in |
| | | 40 | | /// the Job.</param> |
| | | 41 | | /// <param name="kernelCPUTime">The total kernel mode CPU time (summed |
| | | 42 | | /// across all cores and all Compute Nodes) consumed by all Tasks in |
| | | 43 | | /// the Job.</param> |
| | | 44 | | /// <param name="wallClockTime">The total wall clock time of all Tasks |
| | | 45 | | /// in the Job.</param> |
| | | 46 | | /// <param name="readIOps">The total number of disk read operations |
| | | 47 | | /// made by all Tasks in the Job.</param> |
| | | 48 | | /// <param name="writeIOps">The total number of disk write operations |
| | | 49 | | /// made by all Tasks in the Job.</param> |
| | | 50 | | /// <param name="readIOGiB">The total amount of data in GiB read from |
| | | 51 | | /// disk by all Tasks in the Job.</param> |
| | | 52 | | /// <param name="writeIOGiB">The total amount of data in GiB written to |
| | | 53 | | /// disk by all Tasks in the Job.</param> |
| | | 54 | | /// <param name="numSucceededTasks">The total number of Tasks |
| | | 55 | | /// successfully completed in the Job during the given time |
| | | 56 | | /// range.</param> |
| | | 57 | | /// <param name="numFailedTasks">The total number of Tasks in the Job |
| | | 58 | | /// that failed during the given time range.</param> |
| | | 59 | | /// <param name="numTaskRetries">The total number of retries on all the |
| | | 60 | | /// Tasks in the Job during the given time range.</param> |
| | | 61 | | /// <param name="waitTime">The total wait time of all Tasks in the |
| | | 62 | | /// Job.</param> |
| | 0 | 63 | | public JobStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, System.TimeSpan user |
| | | 64 | | { |
| | 0 | 65 | | Url = url; |
| | 0 | 66 | | StartTime = startTime; |
| | 0 | 67 | | LastUpdateTime = lastUpdateTime; |
| | 0 | 68 | | UserCPUTime = userCPUTime; |
| | 0 | 69 | | KernelCPUTime = kernelCPUTime; |
| | 0 | 70 | | WallClockTime = wallClockTime; |
| | 0 | 71 | | ReadIOps = readIOps; |
| | 0 | 72 | | WriteIOps = writeIOps; |
| | 0 | 73 | | ReadIOGiB = readIOGiB; |
| | 0 | 74 | | WriteIOGiB = writeIOGiB; |
| | 0 | 75 | | NumSucceededTasks = numSucceededTasks; |
| | 0 | 76 | | NumFailedTasks = numFailedTasks; |
| | 0 | 77 | | NumTaskRetries = numTaskRetries; |
| | 0 | 78 | | WaitTime = waitTime; |
| | | 79 | | CustomInit(); |
| | 0 | 80 | | } |
| | | 81 | | |
| | | 82 | | /// <summary> |
| | | 83 | | /// An initialization method that performs custom operations like setting defaults |
| | | 84 | | /// </summary> |
| | | 85 | | partial void CustomInit(); |
| | | 86 | | |
| | | 87 | | /// <summary> |
| | | 88 | | /// Gets or sets the URL of the statistics. |
| | | 89 | | /// </summary> |
| | | 90 | | [JsonProperty(PropertyName = "url")] |
| | 1258 | 91 | | public string Url { get; set; } |
| | | 92 | | |
| | | 93 | | /// <summary> |
| | | 94 | | /// Gets or sets the start time of the time range covered by the |
| | | 95 | | /// statistics. |
| | | 96 | | /// </summary> |
| | | 97 | | [JsonProperty(PropertyName = "startTime")] |
| | 1246 | 98 | | public System.DateTime StartTime { get; set; } |
| | | 99 | | |
| | | 100 | | /// <summary> |
| | | 101 | | /// Gets or sets the time at which the statistics were last updated. |
| | | 102 | | /// All statistics are limited to the range between startTime and |
| | | 103 | | /// lastUpdateTime. |
| | | 104 | | /// </summary> |
| | | 105 | | [JsonProperty(PropertyName = "lastUpdateTime")] |
| | 1259 | 106 | | public System.DateTime LastUpdateTime { get; set; } |
| | | 107 | | |
| | | 108 | | /// <summary> |
| | | 109 | | /// Gets or sets the total user mode CPU time (summed across all cores |
| | | 110 | | /// and all Compute Nodes) consumed by all Tasks in the Job. |
| | | 111 | | /// </summary> |
| | | 112 | | [JsonProperty(PropertyName = "userCPUTime")] |
| | 1253 | 113 | | public System.TimeSpan UserCPUTime { get; set; } |
| | | 114 | | |
| | | 115 | | /// <summary> |
| | | 116 | | /// Gets or sets the total kernel mode CPU time (summed across all |
| | | 117 | | /// cores and all Compute Nodes) consumed by all Tasks in the Job. |
| | | 118 | | /// </summary> |
| | | 119 | | [JsonProperty(PropertyName = "kernelCPUTime")] |
| | 1248 | 120 | | public System.TimeSpan KernelCPUTime { get; set; } |
| | | 121 | | |
| | | 122 | | /// <summary> |
| | | 123 | | /// Gets or sets the total wall clock time of all Tasks in the Job. |
| | | 124 | | /// </summary> |
| | | 125 | | /// <remarks> |
| | | 126 | | /// The wall clock time is the elapsed time from when the Task started |
| | | 127 | | /// running on a Compute Node to when it finished (or to the last time |
| | | 128 | | /// the statistics were updated, if the Task had not finished by then). |
| | | 129 | | /// If a Task was retried, this includes the wall clock time of all the |
| | | 130 | | /// Task retries. |
| | | 131 | | /// </remarks> |
| | | 132 | | [JsonProperty(PropertyName = "wallClockTime")] |
| | 1254 | 133 | | public System.TimeSpan WallClockTime { get; set; } |
| | | 134 | | |
| | | 135 | | /// <summary> |
| | | 136 | | /// Gets or sets the total number of disk read operations made by all |
| | | 137 | | /// Tasks in the Job. |
| | | 138 | | /// </summary> |
| | | 139 | | [JsonProperty(PropertyName = "readIOps")] |
| | 1251 | 140 | | public long ReadIOps { get; set; } |
| | | 141 | | |
| | | 142 | | /// <summary> |
| | | 143 | | /// Gets or sets the total number of disk write operations made by all |
| | | 144 | | /// Tasks in the Job. |
| | | 145 | | /// </summary> |
| | | 146 | | [JsonProperty(PropertyName = "writeIOps")] |
| | 1244 | 147 | | public long WriteIOps { get; set; } |
| | | 148 | | |
| | | 149 | | /// <summary> |
| | | 150 | | /// Gets or sets the total amount of data in GiB read from disk by all |
| | | 151 | | /// Tasks in the Job. |
| | | 152 | | /// </summary> |
| | | 153 | | [JsonProperty(PropertyName = "readIOGiB")] |
| | 1253 | 154 | | public double ReadIOGiB { get; set; } |
| | | 155 | | |
| | | 156 | | /// <summary> |
| | | 157 | | /// Gets or sets the total amount of data in GiB written to disk by all |
| | | 158 | | /// Tasks in the Job. |
| | | 159 | | /// </summary> |
| | | 160 | | [JsonProperty(PropertyName = "writeIOGiB")] |
| | 1250 | 161 | | public double WriteIOGiB { get; set; } |
| | | 162 | | |
| | | 163 | | /// <summary> |
| | | 164 | | /// Gets or sets the total number of Tasks successfully completed in |
| | | 165 | | /// the Job during the given time range. |
| | | 166 | | /// </summary> |
| | | 167 | | /// <remarks> |
| | | 168 | | /// A Task completes successfully if it returns exit code 0. |
| | | 169 | | /// </remarks> |
| | | 170 | | [JsonProperty(PropertyName = "numSucceededTasks")] |
| | 1243 | 171 | | public long NumSucceededTasks { get; set; } |
| | | 172 | | |
| | | 173 | | /// <summary> |
| | | 174 | | /// Gets or sets the total number of Tasks in the Job that failed |
| | | 175 | | /// during the given time range. |
| | | 176 | | /// </summary> |
| | | 177 | | /// <remarks> |
| | | 178 | | /// A Task fails if it exhausts its maximum retry count without |
| | | 179 | | /// returning exit code 0. |
| | | 180 | | /// </remarks> |
| | | 181 | | [JsonProperty(PropertyName = "numFailedTasks")] |
| | 1250 | 182 | | public long NumFailedTasks { get; set; } |
| | | 183 | | |
| | | 184 | | /// <summary> |
| | | 185 | | /// Gets or sets the total number of retries on all the Tasks in the |
| | | 186 | | /// Job during the given time range. |
| | | 187 | | /// </summary> |
| | | 188 | | [JsonProperty(PropertyName = "numTaskRetries")] |
| | 1257 | 189 | | public long NumTaskRetries { get; set; } |
| | | 190 | | |
| | | 191 | | /// <summary> |
| | | 192 | | /// Gets or sets the total wait time of all Tasks in the Job. |
| | | 193 | | /// </summary> |
| | | 194 | | /// <remarks> |
| | | 195 | | /// The wait time for a Task is defined as the elapsed time between the |
| | | 196 | | /// creation of the Task and the start of Task execution. (If the Task |
| | | 197 | | /// is retried due to failures, the wait time is the time to the most |
| | | 198 | | /// recent Task execution.) This value is only reported in the Account |
| | | 199 | | /// lifetime statistics; it is not included in the Job statistics. |
| | | 200 | | /// </remarks> |
| | | 201 | | [JsonProperty(PropertyName = "waitTime")] |
| | 1262 | 202 | | public System.TimeSpan WaitTime { get; set; } |
| | | 203 | | |
| | | 204 | | } |
| | | 205 | | } |