|  |  | 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 a <see cref="CloudJobSchedule"/>. | 
|  |  | 22 |  |     /// </summary> | 
|  |  | 23 |  |     public partial class JobScheduleStatistics : IPropertyMetadata | 
|  |  | 24 |  |     { | 
|  |  | 25 |  |         #region Constructors | 
|  |  | 26 |  |  | 
|  | 510 | 27 |  |         internal JobScheduleStatistics(Models.JobScheduleStatistics protocolObject) | 
|  |  | 28 |  |         { | 
|  | 510 | 29 |  |             this.FailedTaskCount = protocolObject.NumFailedTasks; | 
|  | 510 | 30 |  |             this.KernelCpuTime = protocolObject.KernelCPUTime; | 
|  | 510 | 31 |  |             this.LastUpdateTime = protocolObject.LastUpdateTime; | 
|  | 510 | 32 |  |             this.ReadIOGiB = protocolObject.ReadIOGiB; | 
|  | 510 | 33 |  |             this.ReadIOps = protocolObject.ReadIOps; | 
|  | 510 | 34 |  |             this.StartTime = protocolObject.StartTime; | 
|  | 510 | 35 |  |             this.SucceededTaskCount = protocolObject.NumSucceededTasks; | 
|  | 510 | 36 |  |             this.TaskRetryCount = protocolObject.NumTaskRetries; | 
|  | 510 | 37 |  |             this.Url = protocolObject.Url; | 
|  | 510 | 38 |  |             this.UserCpuTime = protocolObject.UserCPUTime; | 
|  | 510 | 39 |  |             this.WaitTime = protocolObject.WaitTime; | 
|  | 510 | 40 |  |             this.WallClockTime = protocolObject.WallClockTime; | 
|  | 510 | 41 |  |             this.WriteIOGiB = protocolObject.WriteIOGiB; | 
|  | 510 | 42 |  |             this.WriteIOps = protocolObject.WriteIOps; | 
|  | 510 | 43 |  |         } | 
|  |  | 44 |  |  | 
|  |  | 45 |  |         #endregion Constructors | 
|  |  | 46 |  |  | 
|  |  | 47 |  |         #region JobScheduleStatistics | 
|  |  | 48 |  |  | 
|  |  | 49 |  |         /// <summary> | 
|  |  | 50 |  |         /// Gets the total number of tasks in the job that failed during the given time range. | 
|  |  | 51 |  |         /// </summary> | 
|  | 510 | 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 schedule. | 
|  |  | 56 |  |         /// </summary> | 
|  | 510 | 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> | 
|  | 510 | 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 schedule. | 
|  |  | 67 |  |         /// </summary> | 
|  | 510 | 68 |  |         public double ReadIOGiB { get; } | 
|  |  | 69 |  |  | 
|  |  | 70 |  |         /// <summary> | 
|  |  | 71 |  |         /// Gets the total number of disk read operations made by all tasks in the job schedule. | 
|  |  | 72 |  |         /// </summary> | 
|  | 510 | 73 |  |         public long ReadIOps { get; } | 
|  |  | 74 |  |  | 
|  |  | 75 |  |         /// <summary> | 
|  |  | 76 |  |         /// Gets the start time of the time range covered by the statistics. | 
|  |  | 77 |  |         /// </summary> | 
|  | 510 | 78 |  |         public DateTime StartTime { get; } | 
|  |  | 79 |  |  | 
|  |  | 80 |  |         /// <summary> | 
|  |  | 81 |  |         /// Gets the total number of tasks successfully completed in the job schedule. | 
|  |  | 82 |  |         /// </summary> | 
|  | 510 | 83 |  |         public long SucceededTaskCount { get; } | 
|  |  | 84 |  |  | 
|  |  | 85 |  |         /// <summary> | 
|  |  | 86 |  |         /// Gets the total number of retries that occurred on all tasks in the job schedule. | 
|  |  | 87 |  |         /// </summary> | 
|  | 510 | 88 |  |         public long TaskRetryCount { get; } | 
|  |  | 89 |  |  | 
|  |  | 90 |  |         /// <summary> | 
|  |  | 91 |  |         /// Gets the URL of the statistics. | 
|  |  | 92 |  |         /// </summary> | 
|  | 510 | 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 schedule. | 
|  |  | 97 |  |         /// </summary> | 
|  | 510 | 98 |  |         public TimeSpan UserCpuTime { get; } | 
|  |  | 99 |  |  | 
|  |  | 100 |  |         /// <summary> | 
|  |  | 101 |  |         /// Gets the total wait time of all tasks in jobs created under the schedule. The wait time for a task is define | 
|  |  | 102 |  |         /// as the elapsed time between the creation of the task and the start of task execution. (If the task is retrie | 
|  |  | 103 |  |         /// due to failures, the wait time 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> | 
|  | 510 | 108 |  |         public TimeSpan WaitTime { get; } | 
|  |  | 109 |  |  | 
|  |  | 110 |  |         /// <summary> | 
|  |  | 111 |  |         /// Gets the total wall clock time of all tasks in the job schedule. Note that if any task was retried multiple  | 
|  |  | 112 |  |         /// this includes the wall clock time of all the task retries. | 
|  |  | 113 |  |         /// </summary> | 
|  | 510 | 114 |  |         public TimeSpan WallClockTime { get; } | 
|  |  | 115 |  |  | 
|  |  | 116 |  |         /// <summary> | 
|  |  | 117 |  |         /// Gets the total gibibytes of I/O written to disk by all tasks in the job schedule. | 
|  |  | 118 |  |         /// </summary> | 
|  | 510 | 119 |  |         public double WriteIOGiB { get; } | 
|  |  | 120 |  |  | 
|  |  | 121 |  |         /// <summary> | 
|  |  | 122 |  |         /// Gets the total number of disk write operations made by all tasks in the job schedule. | 
|  |  | 123 |  |         /// </summary> | 
|  | 510 | 124 |  |         public long WriteIOps { get; } | 
|  |  | 125 |  |  | 
|  |  | 126 |  |         #endregion // JobScheduleStatistics | 
|  |  | 127 |  |  | 
|  |  | 128 |  |         #region IPropertyMetadata | 
|  |  | 129 |  |  | 
|  |  | 130 |  |         bool IModifiable.HasBeenModified | 
|  |  | 131 |  |         { | 
|  |  | 132 |  |             //This class is compile time readonly so it cannot have been modified | 
|  | 0 | 133 |  |             get { return false; } | 
|  |  | 134 |  |         } | 
|  |  | 135 |  |  | 
|  |  | 136 |  |         bool IReadOnly.IsReadOnly | 
|  |  | 137 |  |         { | 
|  | 0 | 138 |  |             get { return true; } | 
|  |  | 139 |  |             set | 
|  |  | 140 |  |             { | 
|  |  | 141 |  |                 // This class is compile time readonly already | 
|  | 510 | 142 |  |             } | 
|  |  | 143 |  |         } | 
|  |  | 144 |  |  | 
|  |  | 145 |  |         #endregion // IPropertyMetadata | 
|  |  | 146 |  |     } | 
|  |  | 147 |  | } |