| | 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 | | /// Contains utilization and resource usage statistics for the lifetime of a pool. |
| | 22 | | /// </summary> |
| | 23 | | public partial class PoolStatistics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 514 | 27 | | internal PoolStatistics(Models.PoolStatistics protocolObject) |
| | 28 | | { |
| 514 | 29 | | this.LastUpdateTime = protocolObject.LastUpdateTime; |
| 777 | 30 | | this.ResourceStatistics = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ResourceStats, o => new |
| 514 | 31 | | this.StartTime = protocolObject.StartTime; |
| 514 | 32 | | this.Url = protocolObject.Url; |
| 791 | 33 | | this.UsageStatistics = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.UsageStats, o => new Usage |
| 514 | 34 | | } |
| | 35 | |
|
| | 36 | | #endregion Constructors |
| | 37 | |
|
| | 38 | | #region PoolStatistics |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Gets the time at which the statistics were last updated. All statistics are limited to the range between <se |
| | 42 | | /// cref="StartTime"/> and this value. |
| | 43 | | /// </summary> |
| 514 | 44 | | public DateTime LastUpdateTime { get; } |
| | 45 | |
|
| | 46 | | /// <summary> |
| | 47 | | /// Gets statistics related to resource consumption by compute nodes in the pool, such as average CPU utilizatio |
| | 48 | | /// </summary> |
| 514 | 49 | | public ResourceStatistics ResourceStatistics { get; } |
| | 50 | |
|
| | 51 | | /// <summary> |
| | 52 | | /// Gets the start time of the time range covered by the statistics. |
| | 53 | | /// </summary> |
| 514 | 54 | | public DateTime StartTime { get; } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// Gets the URL for the statistics. |
| | 58 | | /// </summary> |
| 514 | 59 | | public string Url { get; } |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets statistics related to pool usage, such as the amount of core-time used. |
| | 63 | | /// </summary> |
| 514 | 64 | | public UsageStatistics UsageStatistics { get; } |
| | 65 | |
|
| | 66 | | #endregion // PoolStatistics |
| | 67 | |
|
| | 68 | | #region IPropertyMetadata |
| | 69 | |
|
| | 70 | | bool IModifiable.HasBeenModified |
| | 71 | | { |
| | 72 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 73 | | get { return false; } |
| | 74 | | } |
| | 75 | |
|
| | 76 | | bool IReadOnly.IsReadOnly |
| | 77 | | { |
| 0 | 78 | | get { return true; } |
| | 79 | | set |
| | 80 | | { |
| | 81 | | // This class is compile time readonly already |
| 514 | 82 | | } |
| | 83 | | } |
| | 84 | |
|
| | 85 | | #endregion // IPropertyMetadata |
| | 86 | | } |
| | 87 | | } |