| | 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 | | /// Statistics related to resource consumption by Compute Nodes in a Pool. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ResourceStatistics |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ResourceStatistics class. |
| | 23 | | /// </summary> |
| 264 | 24 | | public ResourceStatistics() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 264 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ResourceStatistics class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="startTime">The start time of the time range covered by |
| | 33 | | /// the statistics.</param> |
| | 34 | | /// <param name="lastUpdateTime">The time at which the statistics were |
| | 35 | | /// last updated. All statistics are limited to the range between |
| | 36 | | /// startTime and lastUpdateTime.</param> |
| | 37 | | /// <param name="avgCPUPercentage">The average CPU usage across all |
| | 38 | | /// Compute Nodes in the Pool (percentage per node).</param> |
| | 39 | | /// <param name="avgMemoryGiB">The average memory usage in GiB across |
| | 40 | | /// all Compute Nodes in the Pool.</param> |
| | 41 | | /// <param name="peakMemoryGiB">The peak memory usage in GiB across all |
| | 42 | | /// Compute Nodes in the Pool.</param> |
| | 43 | | /// <param name="avgDiskGiB">The average used disk space in GiB across |
| | 44 | | /// all Compute Nodes in the Pool.</param> |
| | 45 | | /// <param name="peakDiskGiB">The peak used disk space in GiB across |
| | 46 | | /// all Compute Nodes in the Pool.</param> |
| | 47 | | /// <param name="diskReadIOps">The total number of disk read operations |
| | 48 | | /// across all Compute Nodes in the Pool.</param> |
| | 49 | | /// <param name="diskWriteIOps">The total number of disk write |
| | 50 | | /// operations across all Compute Nodes in the Pool.</param> |
| | 51 | | /// <param name="diskReadGiB">The total amount of data in GiB of disk |
| | 52 | | /// reads across all Compute Nodes in the Pool.</param> |
| | 53 | | /// <param name="diskWriteGiB">The total amount of data in GiB of disk |
| | 54 | | /// writes across all Compute Nodes in the Pool.</param> |
| | 55 | | /// <param name="networkReadGiB">The total amount of data in GiB of |
| | 56 | | /// network reads across all Compute Nodes in the Pool.</param> |
| | 57 | | /// <param name="networkWriteGiB">The total amount of data in GiB of |
| | 58 | | /// network writes across all Compute Nodes in the Pool.</param> |
| 0 | 59 | | public ResourceStatistics(System.DateTime startTime, System.DateTime lastUpdateTime, double avgCPUPercentage, do |
| | 60 | | { |
| 0 | 61 | | StartTime = startTime; |
| 0 | 62 | | LastUpdateTime = lastUpdateTime; |
| 0 | 63 | | AvgCPUPercentage = avgCPUPercentage; |
| 0 | 64 | | AvgMemoryGiB = avgMemoryGiB; |
| 0 | 65 | | PeakMemoryGiB = peakMemoryGiB; |
| 0 | 66 | | AvgDiskGiB = avgDiskGiB; |
| 0 | 67 | | PeakDiskGiB = peakDiskGiB; |
| 0 | 68 | | DiskReadIOps = diskReadIOps; |
| 0 | 69 | | DiskWriteIOps = diskWriteIOps; |
| 0 | 70 | | DiskReadGiB = diskReadGiB; |
| 0 | 71 | | DiskWriteGiB = diskWriteGiB; |
| 0 | 72 | | NetworkReadGiB = networkReadGiB; |
| 0 | 73 | | NetworkWriteGiB = networkWriteGiB; |
| | 74 | | CustomInit(); |
| 0 | 75 | | } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// An initialization method that performs custom operations like setting defaults |
| | 79 | | /// </summary> |
| | 80 | | partial void CustomInit(); |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets the start time of the time range covered by the |
| | 84 | | /// statistics. |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "startTime")] |
| 666 | 87 | | public System.DateTime StartTime { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// Gets or sets the time at which the statistics were last updated. |
| | 91 | | /// All statistics are limited to the range between startTime and |
| | 92 | | /// lastUpdateTime. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "lastUpdateTime")] |
| 661 | 95 | | public System.DateTime LastUpdateTime { get; set; } |
| | 96 | |
|
| | 97 | | /// <summary> |
| | 98 | | /// Gets or sets the average CPU usage across all Compute Nodes in the |
| | 99 | | /// Pool (percentage per node). |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "avgCPUPercentage")] |
| 649 | 102 | | public double AvgCPUPercentage { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets the average memory usage in GiB across all Compute |
| | 106 | | /// Nodes in the Pool. |
| | 107 | | /// </summary> |
| | 108 | | [JsonProperty(PropertyName = "avgMemoryGiB")] |
| 655 | 109 | | public double AvgMemoryGiB { get; set; } |
| | 110 | |
|
| | 111 | | /// <summary> |
| | 112 | | /// Gets or sets the peak memory usage in GiB across all Compute Nodes |
| | 113 | | /// in the Pool. |
| | 114 | | /// </summary> |
| | 115 | | [JsonProperty(PropertyName = "peakMemoryGiB")] |
| 652 | 116 | | public double PeakMemoryGiB { get; set; } |
| | 117 | |
|
| | 118 | | /// <summary> |
| | 119 | | /// Gets or sets the average used disk space in GiB across all Compute |
| | 120 | | /// Nodes in the Pool. |
| | 121 | | /// </summary> |
| | 122 | | [JsonProperty(PropertyName = "avgDiskGiB")] |
| 663 | 123 | | public double AvgDiskGiB { get; set; } |
| | 124 | |
|
| | 125 | | /// <summary> |
| | 126 | | /// Gets or sets the peak used disk space in GiB across all Compute |
| | 127 | | /// Nodes in the Pool. |
| | 128 | | /// </summary> |
| | 129 | | [JsonProperty(PropertyName = "peakDiskGiB")] |
| 673 | 130 | | public double PeakDiskGiB { get; set; } |
| | 131 | |
|
| | 132 | | /// <summary> |
| | 133 | | /// Gets or sets the total number of disk read operations across all |
| | 134 | | /// Compute Nodes in the Pool. |
| | 135 | | /// </summary> |
| | 136 | | [JsonProperty(PropertyName = "diskReadIOps")] |
| 665 | 137 | | public long DiskReadIOps { get; set; } |
| | 138 | |
|
| | 139 | | /// <summary> |
| | 140 | | /// Gets or sets the total number of disk write operations across all |
| | 141 | | /// Compute Nodes in the Pool. |
| | 142 | | /// </summary> |
| | 143 | | [JsonProperty(PropertyName = "diskWriteIOps")] |
| 677 | 144 | | public long DiskWriteIOps { get; set; } |
| | 145 | |
|
| | 146 | | /// <summary> |
| | 147 | | /// Gets or sets the total amount of data in GiB of disk reads across |
| | 148 | | /// all Compute Nodes in the Pool. |
| | 149 | | /// </summary> |
| | 150 | | [JsonProperty(PropertyName = "diskReadGiB")] |
| 663 | 151 | | public double DiskReadGiB { get; set; } |
| | 152 | |
|
| | 153 | | /// <summary> |
| | 154 | | /// Gets or sets the total amount of data in GiB of disk writes across |
| | 155 | | /// all Compute Nodes in the Pool. |
| | 156 | | /// </summary> |
| | 157 | | [JsonProperty(PropertyName = "diskWriteGiB")] |
| 665 | 158 | | public double DiskWriteGiB { get; set; } |
| | 159 | |
|
| | 160 | | /// <summary> |
| | 161 | | /// Gets or sets the total amount of data in GiB of network reads |
| | 162 | | /// across all Compute Nodes in the Pool. |
| | 163 | | /// </summary> |
| | 164 | | [JsonProperty(PropertyName = "networkReadGiB")] |
| 654 | 165 | | public double NetworkReadGiB { get; set; } |
| | 166 | |
|
| | 167 | | /// <summary> |
| | 168 | | /// Gets or sets the total amount of data in GiB of network writes |
| | 169 | | /// across all Compute Nodes in the Pool. |
| | 170 | | /// </summary> |
| | 171 | | [JsonProperty(PropertyName = "networkWriteGiB")] |
| 657 | 172 | | public double NetworkWriteGiB { get; set; } |
| | 173 | |
|
| | 174 | | } |
| | 175 | | } |