| | 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 | | /// Contains utilization and resource usage statistics for the lifetime of |
| | 18 | | /// a Pool. |
| | 19 | | /// </summary> |
| | 20 | | public partial class PoolStatistics |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the PoolStatistics class. |
| | 24 | | /// </summary> |
| 514 | 25 | | public PoolStatistics() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 514 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the PoolStatistics class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="url">The URL for the statistics.</param> |
| | 34 | | /// <param name="startTime">The start time of the time range covered by |
| | 35 | | /// the statistics.</param> |
| | 36 | | /// <param name="lastUpdateTime">The time at which the statistics were |
| | 37 | | /// last updated. All statistics are limited to the range between |
| | 38 | | /// startTime and lastUpdateTime.</param> |
| | 39 | | /// <param name="usageStats">Statistics related to Pool usage, such as |
| | 40 | | /// the amount of core-time used.</param> |
| | 41 | | /// <param name="resourceStats">Statistics related to resource |
| | 42 | | /// consumption by Compute Nodes in the Pool.</param> |
| 0 | 43 | | public PoolStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, UsageStatistics usa |
| | 44 | | { |
| 0 | 45 | | Url = url; |
| 0 | 46 | | StartTime = startTime; |
| 0 | 47 | | LastUpdateTime = lastUpdateTime; |
| 0 | 48 | | UsageStats = usageStats; |
| 0 | 49 | | ResourceStats = resourceStats; |
| | 50 | | CustomInit(); |
| 0 | 51 | | } |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | 55 | | /// </summary> |
| | 56 | | partial void CustomInit(); |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets the URL for the statistics. |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "url")] |
| 1299 | 62 | | public string Url { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets the start time of the time range covered by the |
| | 66 | | /// statistics. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "startTime")] |
| 1298 | 69 | | public System.DateTime StartTime { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the time at which the statistics were last updated. |
| | 73 | | /// All statistics are limited to the range between startTime and |
| | 74 | | /// lastUpdateTime. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "lastUpdateTime")] |
| 1300 | 77 | | public System.DateTime LastUpdateTime { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets statistics related to Pool usage, such as the amount |
| | 81 | | /// of core-time used. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "usageStats")] |
| 1304 | 84 | | public UsageStatistics UsageStats { get; set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets or sets statistics related to resource consumption by Compute |
| | 88 | | /// Nodes in the Pool. |
| | 89 | | /// </summary> |
| | 90 | | [JsonProperty(PropertyName = "resourceStats")] |
| 1290 | 91 | | public ResourceStatistics ResourceStats { get; set; } |
| | 92 | |
|
| | 93 | | } |
| | 94 | | } |