| | 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 Task. |
| | 18 | | /// </summary> |
| | 19 | | public partial class TaskStatistics |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the TaskStatistics class. |
| | 23 | | /// </summary> |
| 478 | 24 | | public TaskStatistics() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 478 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the TaskStatistics 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 the |
| | 40 | | /// Task.</param> |
| | 41 | | /// <param name="kernelCPUTime">The total kernel mode CPU time (summed |
| | 42 | | /// across all cores and all Compute Nodes) consumed by the |
| | 43 | | /// Task.</param> |
| | 44 | | /// <param name="wallClockTime">The total wall clock time of the |
| | 45 | | /// Task.</param> |
| | 46 | | /// <param name="readIOps">The total number of disk read operations |
| | 47 | | /// made by the Task.</param> |
| | 48 | | /// <param name="writeIOps">The total number of disk write operations |
| | 49 | | /// made by the Task.</param> |
| | 50 | | /// <param name="readIOGiB">The total gibibytes read from disk by the |
| | 51 | | /// Task.</param> |
| | 52 | | /// <param name="writeIOGiB">The total gibibytes written to disk by the |
| | 53 | | /// Task.</param> |
| | 54 | | /// <param name="waitTime">The total wait time of the Task. The wait |
| | 55 | | /// time for a Task is defined as the elapsed time between the creation |
| | 56 | | /// of the Task and the start of Task execution. (If the Task is |
| | 57 | | /// retried due to failures, the wait time is the time to the most |
| | 58 | | /// recent Task execution.)</param> |
| 0 | 59 | | public TaskStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, System.TimeSpan use |
| | 60 | | { |
| 0 | 61 | | Url = url; |
| 0 | 62 | | StartTime = startTime; |
| 0 | 63 | | LastUpdateTime = lastUpdateTime; |
| 0 | 64 | | UserCPUTime = userCPUTime; |
| 0 | 65 | | KernelCPUTime = kernelCPUTime; |
| 0 | 66 | | WallClockTime = wallClockTime; |
| 0 | 67 | | ReadIOps = readIOps; |
| 0 | 68 | | WriteIOps = writeIOps; |
| 0 | 69 | | ReadIOGiB = readIOGiB; |
| 0 | 70 | | WriteIOGiB = writeIOGiB; |
| 0 | 71 | | WaitTime = waitTime; |
| | 72 | | CustomInit(); |
| 0 | 73 | | } |
| | 74 | |
|
| | 75 | | /// <summary> |
| | 76 | | /// An initialization method that performs custom operations like setting defaults |
| | 77 | | /// </summary> |
| | 78 | | partial void CustomInit(); |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets the URL of the statistics. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "url")] |
| 1201 | 84 | | public string Url { get; set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets or sets the start time of the time range covered by the |
| | 88 | | /// statistics. |
| | 89 | | /// </summary> |
| | 90 | | [JsonProperty(PropertyName = "startTime")] |
| 1202 | 91 | | public System.DateTime StartTime { get; set; } |
| | 92 | |
|
| | 93 | | /// <summary> |
| | 94 | | /// Gets or sets the time at which the statistics were last updated. |
| | 95 | | /// All statistics are limited to the range between startTime and |
| | 96 | | /// lastUpdateTime. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "lastUpdateTime")] |
| 1202 | 99 | | public System.DateTime LastUpdateTime { get; set; } |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Gets or sets the total user mode CPU time (summed across all cores |
| | 103 | | /// and all Compute Nodes) consumed by the Task. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "userCPUTime")] |
| 1206 | 106 | | public System.TimeSpan UserCPUTime { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets the total kernel mode CPU time (summed across all |
| | 110 | | /// cores and all Compute Nodes) consumed by the Task. |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "kernelCPUTime")] |
| 1210 | 113 | | public System.TimeSpan KernelCPUTime { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Gets or sets the total wall clock time of the Task. |
| | 117 | | /// </summary> |
| | 118 | | /// <remarks> |
| | 119 | | /// The wall clock time is the elapsed time from when the Task started |
| | 120 | | /// running on a Compute Node to when it finished (or to the last time |
| | 121 | | /// the statistics were updated, if the Task had not finished by then). |
| | 122 | | /// If the Task was retried, this includes the wall clock time of all |
| | 123 | | /// the Task retries. |
| | 124 | | /// </remarks> |
| | 125 | | [JsonProperty(PropertyName = "wallClockTime")] |
| 1204 | 126 | | public System.TimeSpan WallClockTime { get; set; } |
| | 127 | |
|
| | 128 | | /// <summary> |
| | 129 | | /// Gets or sets the total number of disk read operations made by the |
| | 130 | | /// Task. |
| | 131 | | /// </summary> |
| | 132 | | [JsonProperty(PropertyName = "readIOps")] |
| 1202 | 133 | | public long ReadIOps { get; set; } |
| | 134 | |
|
| | 135 | | /// <summary> |
| | 136 | | /// Gets or sets the total number of disk write operations made by the |
| | 137 | | /// Task. |
| | 138 | | /// </summary> |
| | 139 | | [JsonProperty(PropertyName = "writeIOps")] |
| 1187 | 140 | | public long WriteIOps { get; set; } |
| | 141 | |
|
| | 142 | | /// <summary> |
| | 143 | | /// Gets or sets the total gibibytes read from disk by the Task. |
| | 144 | | /// </summary> |
| | 145 | | [JsonProperty(PropertyName = "readIOGiB")] |
| 1195 | 146 | | public double ReadIOGiB { get; set; } |
| | 147 | |
|
| | 148 | | /// <summary> |
| | 149 | | /// Gets or sets the total gibibytes written to disk by the Task. |
| | 150 | | /// </summary> |
| | 151 | | [JsonProperty(PropertyName = "writeIOGiB")] |
| 1201 | 152 | | public double WriteIOGiB { get; set; } |
| | 153 | |
|
| | 154 | | /// <summary> |
| | 155 | | /// Gets or sets the total wait time of the Task. The wait time for a |
| | 156 | | /// Task is defined as the elapsed time between the creation of the |
| | 157 | | /// Task and the start of Task execution. (If the Task is retried due |
| | 158 | | /// to failures, the wait time is the time to the most recent Task |
| | 159 | | /// execution.) |
| | 160 | | /// </summary> |
| | 161 | | [JsonProperty(PropertyName = "waitTime")] |
| 1201 | 162 | | public System.TimeSpan WaitTime { get; set; } |
| | 163 | |
|
| | 164 | | } |
| | 165 | | } |