| | 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 task. |
| | 22 | | /// </summary> |
| | 23 | | public partial class TaskStatistics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 478 | 27 | | internal TaskStatistics(Models.TaskStatistics protocolObject) |
| | 28 | | { |
| 478 | 29 | | this.KernelCpuTime = protocolObject.KernelCPUTime; |
| 478 | 30 | | this.LastUpdateTime = protocolObject.LastUpdateTime; |
| 478 | 31 | | this.ReadIOGiB = protocolObject.ReadIOGiB; |
| 478 | 32 | | this.ReadIOps = protocolObject.ReadIOps; |
| 478 | 33 | | this.StartTime = protocolObject.StartTime; |
| 478 | 34 | | this.Url = protocolObject.Url; |
| 478 | 35 | | this.UserCpuTime = protocolObject.UserCPUTime; |
| 478 | 36 | | this.WaitTime = protocolObject.WaitTime; |
| 478 | 37 | | this.WallClockTime = protocolObject.WallClockTime; |
| 478 | 38 | | this.WriteIOGiB = protocolObject.WriteIOGiB; |
| 478 | 39 | | this.WriteIOps = protocolObject.WriteIOps; |
| 478 | 40 | | } |
| | 41 | |
|
| | 42 | | #endregion Constructors |
| | 43 | |
|
| | 44 | | #region TaskStatistics |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Gets the total kernel mode CPU time (per core) consumed by the task. |
| | 48 | | /// </summary> |
| 478 | 49 | | public TimeSpan KernelCpuTime { get; } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// Gets the time at which the statistics were last updated. All statistics are limited to the range between <se |
| | 53 | | /// cref="StartTime"/> and this value. |
| | 54 | | /// </summary> |
| 478 | 55 | | public DateTime LastUpdateTime { get; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets the total gibibytes of I/O read from disk by the task. |
| | 59 | | /// </summary> |
| 478 | 60 | | public double ReadIOGiB { get; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// Gets the total number of disk read operations made by the task. |
| | 64 | | /// </summary> |
| 478 | 65 | | public long ReadIOps { get; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets the start time of the time range covered by the statistics. |
| | 69 | | /// </summary> |
| 478 | 70 | | public DateTime StartTime { get; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Gets the URL of the task statistics. |
| | 74 | | /// </summary> |
| 478 | 75 | | public string Url { get; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets the total user mode CPU time (per core) consumed by the task. |
| | 79 | | /// </summary> |
| 478 | 80 | | public TimeSpan UserCpuTime { get; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets the total wait time of the task. The wait time for a task is defined as the elapsed time between the cr |
| | 84 | | /// of the task and the start of task execution. (If the task is retried due to failures, the wait time is the t |
| | 85 | | /// to the most recent task execution.) |
| | 86 | | /// </summary> |
| 478 | 87 | | public TimeSpan WaitTime { get; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets the wall clock time of the task execution. |
| | 91 | | /// </summary> |
| 478 | 92 | | public TimeSpan WallClockTime { get; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets the total gibibytes of I/O written to disk by the task. |
| | 96 | | /// </summary> |
| 478 | 97 | | public double WriteIOGiB { get; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets the total number of disk write operations made by the task. |
| | 101 | | /// </summary> |
| 478 | 102 | | public long WriteIOps { get; } |
| | 103 | |
|
| | 104 | | #endregion // TaskStatistics |
| | 105 | |
|
| | 106 | | #region IPropertyMetadata |
| | 107 | |
|
| | 108 | | bool IModifiable.HasBeenModified |
| | 109 | | { |
| | 110 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 111 | | get { return false; } |
| | 112 | | } |
| | 113 | |
|
| | 114 | | bool IReadOnly.IsReadOnly |
| | 115 | | { |
| 0 | 116 | | get { return true; } |
| | 117 | | set |
| | 118 | | { |
| | 119 | | // This class is compile time readonly already |
| 478 | 120 | | } |
| | 121 | | } |
| | 122 | |
|
| | 123 | | #endregion // IPropertyMetadata |
| | 124 | | } |
| | 125 | | } |