| | 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 Schedule. |
| | 18 | | /// </summary> |
| | 19 | | public partial class JobScheduleStatistics |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the JobScheduleStatistics class. |
| | 23 | | /// </summary> |
| 510 | 24 | | public JobScheduleStatistics() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 510 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the JobScheduleStatistics 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 | | /// all Jobs created under the schedule.</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 | | /// all Jobs created under the schedule.</param> |
| | 44 | | /// <param name="wallClockTime">The total wall clock time of all the |
| | 45 | | /// Tasks in all the Jobs created under the schedule.</param> |
| | 46 | | /// <param name="readIOps">The total number of disk read operations |
| | 47 | | /// made by all Tasks in all Jobs created under the schedule.</param> |
| | 48 | | /// <param name="writeIOps">The total number of disk write operations |
| | 49 | | /// made by all Tasks in all Jobs created under the schedule.</param> |
| | 50 | | /// <param name="readIOGiB">The total gibibytes read from disk by all |
| | 51 | | /// Tasks in all Jobs created under the schedule.</param> |
| | 52 | | /// <param name="writeIOGiB">The total gibibytes written to disk by all |
| | 53 | | /// Tasks in all Jobs created under the schedule.</param> |
| | 54 | | /// <param name="numSucceededTasks">The total number of Tasks |
| | 55 | | /// successfully completed during the given time range in Jobs created |
| | 56 | | /// under the schedule. A Task completes successfully if it returns |
| | 57 | | /// exit code 0.</param> |
| | 58 | | /// <param name="numFailedTasks">The total number of Tasks that failed |
| | 59 | | /// during the given time range in Jobs created under the schedule. A |
| | 60 | | /// Task fails if it exhausts its maximum retry count without returning |
| | 61 | | /// exit code 0.</param> |
| | 62 | | /// <param name="numTaskRetries">The total number of retries during the |
| | 63 | | /// given time range on all Tasks in all Jobs created under the |
| | 64 | | /// schedule.</param> |
| | 65 | | /// <param name="waitTime">The total wait time of all Tasks in all Jobs |
| | 66 | | /// created under the schedule. The wait time for a Task is defined as |
| | 67 | | /// the elapsed time between the creation of the Task and the start of |
| | 68 | | /// Task execution. (If the Task is retried due to failures, the wait |
| | 69 | | /// time is the time to the most recent Task execution.)</param> |
| 0 | 70 | | public JobScheduleStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, System.TimeS |
| | 71 | | { |
| 0 | 72 | | Url = url; |
| 0 | 73 | | StartTime = startTime; |
| 0 | 74 | | LastUpdateTime = lastUpdateTime; |
| 0 | 75 | | UserCPUTime = userCPUTime; |
| 0 | 76 | | KernelCPUTime = kernelCPUTime; |
| 0 | 77 | | WallClockTime = wallClockTime; |
| 0 | 78 | | ReadIOps = readIOps; |
| 0 | 79 | | WriteIOps = writeIOps; |
| 0 | 80 | | ReadIOGiB = readIOGiB; |
| 0 | 81 | | WriteIOGiB = writeIOGiB; |
| 0 | 82 | | NumSucceededTasks = numSucceededTasks; |
| 0 | 83 | | NumFailedTasks = numFailedTasks; |
| 0 | 84 | | NumTaskRetries = numTaskRetries; |
| 0 | 85 | | WaitTime = waitTime; |
| | 86 | | CustomInit(); |
| 0 | 87 | | } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// An initialization method that performs custom operations like setting defaults |
| | 91 | | /// </summary> |
| | 92 | | partial void CustomInit(); |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets the URL of the statistics. |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "url")] |
| 1266 | 98 | | public string Url { get; set; } |
| | 99 | |
|
| | 100 | | /// <summary> |
| | 101 | | /// Gets or sets the start time of the time range covered by the |
| | 102 | | /// statistics. |
| | 103 | | /// </summary> |
| | 104 | | [JsonProperty(PropertyName = "startTime")] |
| 1268 | 105 | | public System.DateTime StartTime { get; set; } |
| | 106 | |
|
| | 107 | | /// <summary> |
| | 108 | | /// Gets or sets the time at which the statistics were last updated. |
| | 109 | | /// All statistics are limited to the range between startTime and |
| | 110 | | /// lastUpdateTime. |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "lastUpdateTime")] |
| 1278 | 113 | | public System.DateTime LastUpdateTime { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets or sets the total user mode CPU time (summed across all cores |
| | 117 | | /// and all Compute Nodes) consumed by all Tasks in all Jobs created |
| | 118 | | /// under the schedule. |
| | 119 | | /// </summary> |
| | 120 | | [JsonProperty(PropertyName = "userCPUTime")] |
| 1298 | 121 | | public System.TimeSpan UserCPUTime { get; set; } |
| | 122 | |
|
| | 123 | | /// <summary> |
| | 124 | | /// Gets or sets the total kernel mode CPU time (summed across all |
| | 125 | | /// cores and all Compute Nodes) consumed by all Tasks in all Jobs |
| | 126 | | /// created under the schedule. |
| | 127 | | /// </summary> |
| | 128 | | [JsonProperty(PropertyName = "kernelCPUTime")] |
| 1268 | 129 | | public System.TimeSpan KernelCPUTime { get; set; } |
| | 130 | |
|
| | 131 | | /// <summary> |
| | 132 | | /// Gets or sets the total wall clock time of all the Tasks in all the |
| | 133 | | /// Jobs created under the schedule. |
| | 134 | | /// </summary> |
| | 135 | | /// <remarks> |
| | 136 | | /// The wall clock time is the elapsed time from when the Task started |
| | 137 | | /// running on a Compute Node to when it finished (or to the last time |
| | 138 | | /// the statistics were updated, if the Task had not finished by then). |
| | 139 | | /// If a Task was retried, this includes the wall clock time of all the |
| | 140 | | /// Task retries. |
| | 141 | | /// </remarks> |
| | 142 | | [JsonProperty(PropertyName = "wallClockTime")] |
| 1268 | 143 | | public System.TimeSpan WallClockTime { get; set; } |
| | 144 | |
|
| | 145 | | /// <summary> |
| | 146 | | /// Gets or sets the total number of disk read operations made by all |
| | 147 | | /// Tasks in all Jobs created under the schedule. |
| | 148 | | /// </summary> |
| | 149 | | [JsonProperty(PropertyName = "readIOps")] |
| 1256 | 150 | | public long ReadIOps { get; set; } |
| | 151 | |
|
| | 152 | | /// <summary> |
| | 153 | | /// Gets or sets the total number of disk write operations made by all |
| | 154 | | /// Tasks in all Jobs created under the schedule. |
| | 155 | | /// </summary> |
| | 156 | | [JsonProperty(PropertyName = "writeIOps")] |
| 1269 | 157 | | public long WriteIOps { get; set; } |
| | 158 | |
|
| | 159 | | /// <summary> |
| | 160 | | /// Gets or sets the total gibibytes read from disk by all Tasks in all |
| | 161 | | /// Jobs created under the schedule. |
| | 162 | | /// </summary> |
| | 163 | | [JsonProperty(PropertyName = "readIOGiB")] |
| 1290 | 164 | | public double ReadIOGiB { get; set; } |
| | 165 | |
|
| | 166 | | /// <summary> |
| | 167 | | /// Gets or sets the total gibibytes written to disk by all Tasks in |
| | 168 | | /// all Jobs created under the schedule. |
| | 169 | | /// </summary> |
| | 170 | | [JsonProperty(PropertyName = "writeIOGiB")] |
| 1277 | 171 | | public double WriteIOGiB { get; set; } |
| | 172 | |
|
| | 173 | | /// <summary> |
| | 174 | | /// Gets or sets the total number of Tasks successfully completed |
| | 175 | | /// during the given time range in Jobs created under the schedule. A |
| | 176 | | /// Task completes successfully if it returns exit code 0. |
| | 177 | | /// </summary> |
| | 178 | | [JsonProperty(PropertyName = "numSucceededTasks")] |
| 1267 | 179 | | public long NumSucceededTasks { get; set; } |
| | 180 | |
|
| | 181 | | /// <summary> |
| | 182 | | /// Gets or sets the total number of Tasks that failed during the given |
| | 183 | | /// time range in Jobs created under the schedule. A Task fails if it |
| | 184 | | /// exhausts its maximum retry count without returning exit code 0. |
| | 185 | | /// </summary> |
| | 186 | | [JsonProperty(PropertyName = "numFailedTasks")] |
| 1279 | 187 | | public long NumFailedTasks { get; set; } |
| | 188 | |
|
| | 189 | | /// <summary> |
| | 190 | | /// Gets or sets the total number of retries during the given time |
| | 191 | | /// range on all Tasks in all Jobs created under the schedule. |
| | 192 | | /// </summary> |
| | 193 | | [JsonProperty(PropertyName = "numTaskRetries")] |
| 1286 | 194 | | public long NumTaskRetries { get; set; } |
| | 195 | |
|
| | 196 | | /// <summary> |
| | 197 | | /// Gets or sets the total wait time of all Tasks in all Jobs created |
| | 198 | | /// under the schedule. The wait time for a Task is defined as the |
| | 199 | | /// elapsed time between the creation of the Task and the start of Task |
| | 200 | | /// execution. (If the Task is retried due to failures, the wait time |
| | 201 | | /// is the time to the most recent Task execution.) |
| | 202 | | /// </summary> |
| | 203 | | /// <remarks> |
| | 204 | | /// This value is only reported in the Account lifetime statistics; it |
| | 205 | | /// is not included in the Job statistics. |
| | 206 | | /// </remarks> |
| | 207 | | [JsonProperty(PropertyName = "waitTime")] |
| 1284 | 208 | | public System.TimeSpan WaitTime { get; set; } |
| | 209 | |
|
| | 210 | | } |
| | 211 | | } |