| | 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 | | /// The resource statistics data for the pool. |
| | 22 | | /// </summary> |
| | 23 | | public partial class ResourceStatistics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 264 | 27 | | internal ResourceStatistics(Models.ResourceStatistics protocolObject) |
| | 28 | | { |
| 264 | 29 | | this.AverageCpuPercentage = protocolObject.AvgCPUPercentage; |
| 264 | 30 | | this.AverageDiskGiB = protocolObject.AvgDiskGiB; |
| 264 | 31 | | this.AverageMemoryGiB = protocolObject.AvgMemoryGiB; |
| 264 | 32 | | this.DiskReadGiB = protocolObject.DiskReadGiB; |
| 264 | 33 | | this.DiskReadIOps = protocolObject.DiskReadIOps; |
| 264 | 34 | | this.DiskWriteGiB = protocolObject.DiskWriteGiB; |
| 264 | 35 | | this.DiskWriteIOps = protocolObject.DiskWriteIOps; |
| 264 | 36 | | this.LastUpdateTime = protocolObject.LastUpdateTime; |
| 264 | 37 | | this.NetworkReadGiB = protocolObject.NetworkReadGiB; |
| 264 | 38 | | this.NetworkWriteGiB = protocolObject.NetworkWriteGiB; |
| 264 | 39 | | this.PeakDiskGiB = protocolObject.PeakDiskGiB; |
| 264 | 40 | | this.PeakMemoryGiB = protocolObject.PeakMemoryGiB; |
| 264 | 41 | | this.StartTime = protocolObject.StartTime; |
| 264 | 42 | | } |
| | 43 | |
|
| | 44 | | #endregion Constructors |
| | 45 | |
|
| | 46 | | #region ResourceStatistics |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// Gets the average CPU usage across all compute nodes in the pool (percentage per compute node). |
| | 50 | | /// </summary> |
| 263 | 51 | | public double AverageCpuPercentage { get; } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets the average used disk space in gibibytes across all compute nodes in the pool. |
| | 55 | | /// </summary> |
| 263 | 56 | | public double AverageDiskGiB { get; } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets the average memory usage in gibibytes across all compute nodes in the pool. |
| | 60 | | /// </summary> |
| 263 | 61 | | public double AverageMemoryGiB { get; } |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets the total amount of data in gibibytes of disk reads across all compute nodes in the pool. |
| | 65 | | /// </summary> |
| 263 | 66 | | public double DiskReadGiB { get; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets the total number of disk read operations across all compute nodes in the pool. |
| | 70 | | /// </summary> |
| 263 | 71 | | public long DiskReadIOps { get; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets the total amount of data in gibibytes of disk writes across all compute nodes in the pool. |
| | 75 | | /// </summary> |
| 263 | 76 | | public double DiskWriteGiB { get; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets the total number of disk write operations across all compute nodes in the pool. |
| | 80 | | /// </summary> |
| 263 | 81 | | public long DiskWriteIOps { get; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets the time at which the statistics were last updated. All statistics are limited to the range between <se |
| | 85 | | /// cref="StartTime"/> and this value. |
| | 86 | | /// </summary> |
| 263 | 87 | | public DateTime LastUpdateTime { get; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets the total amount of data in gibibytes of network reads across all compute nodes in the pool. |
| | 91 | | /// </summary> |
| 263 | 92 | | public double NetworkReadGiB { get; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets the total amount of data in gibibytes of network writes across all compute nodes in the pool. |
| | 96 | | /// </summary> |
| 263 | 97 | | public double NetworkWriteGiB { get; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets the peak used disk space in gibibytes across all compute nodes in the pool. |
| | 101 | | /// </summary> |
| 263 | 102 | | public double PeakDiskGiB { get; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets the peak memory usage in gibibytes across all compute nodes in the pool. |
| | 106 | | /// </summary> |
| 263 | 107 | | public double PeakMemoryGiB { get; } |
| | 108 | |
|
| | 109 | | /// <summary> |
| | 110 | | /// Gets the start time of the time range covered by the statistics. |
| | 111 | | /// </summary> |
| 263 | 112 | | public DateTime StartTime { get; } |
| | 113 | |
|
| | 114 | | #endregion // ResourceStatistics |
| | 115 | |
|
| | 116 | | #region IPropertyMetadata |
| | 117 | |
|
| | 118 | | bool IModifiable.HasBeenModified |
| | 119 | | { |
| | 120 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 121 | | get { return false; } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | bool IReadOnly.IsReadOnly |
| | 125 | | { |
| 0 | 126 | | get { return true; } |
| | 127 | | set |
| | 128 | | { |
| | 129 | | // This class is compile time readonly already |
| 264 | 130 | | } |
| | 131 | | } |
| | 132 | |
|
| | 133 | | #endregion // IPropertyMetadata |
| | 134 | | } |
| | 135 | | } |