| | 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 usage metrics for a single pool in a certain time range. |
| | 22 | | /// </summary> |
| | 23 | | public partial class PoolUsageMetrics : IPropertyMetadata |
| | 24 | | { |
| | 25 | | #region Constructors |
| | 26 | |
|
| 1 | 27 | | internal PoolUsageMetrics(Models.PoolUsageMetrics protocolObject) |
| | 28 | | { |
| 1 | 29 | | this.EndTime = protocolObject.EndTime; |
| 1 | 30 | | this.PoolId = protocolObject.PoolId; |
| 1 | 31 | | this.StartTime = protocolObject.StartTime; |
| 1 | 32 | | this.TotalCoreHours = protocolObject.TotalCoreHours; |
| 1 | 33 | | this.VirtualMachineSize = protocolObject.VmSize; |
| 1 | 34 | | } |
| | 35 | |
|
| | 36 | | #endregion Constructors |
| | 37 | |
|
| | 38 | | #region PoolUsageMetrics |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Gets the end time of the aggregation interval for this entry. |
| | 42 | | /// </summary> |
| 1 | 43 | | public DateTime EndTime { get; } |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// Gets the id of the pool whose metrics are aggregated in this entry. |
| | 47 | | /// </summary> |
| 1 | 48 | | public string PoolId { get; } |
| | 49 | |
|
| | 50 | | /// <summary> |
| | 51 | | /// Gets the start time of the aggregation interval covered by this entry. |
| | 52 | | /// </summary> |
| 1 | 53 | | public DateTime StartTime { get; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets the total core hours used in the pool during this aggregation interval. |
| | 57 | | /// </summary> |
| 1 | 58 | | public double TotalCoreHours { get; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets the size of the virtual machines in the pool. All virtual machines in a pool are the same size. |
| | 62 | | /// </summary> |
| | 63 | | /// <remarks> |
| | 64 | | /// <para>For information about available sizes of virtual machines in pools, see Choose a VM size for compute n |
| | 65 | | /// in an Azure Batch pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).</para> |
| | 66 | | /// </remarks> |
| 1 | 67 | | public string VirtualMachineSize { get; } |
| | 68 | |
|
| | 69 | | #endregion // PoolUsageMetrics |
| | 70 | |
|
| | 71 | | #region IPropertyMetadata |
| | 72 | |
|
| | 73 | | bool IModifiable.HasBeenModified |
| | 74 | | { |
| | 75 | | //This class is compile time readonly so it cannot have been modified |
| 0 | 76 | | get { return false; } |
| | 77 | | } |
| | 78 | |
|
| | 79 | | bool IReadOnly.IsReadOnly |
| | 80 | | { |
| 0 | 81 | | get { return true; } |
| | 82 | | set |
| | 83 | | { |
| | 84 | | // This class is compile time readonly already |
| 1 | 85 | | } |
| | 86 | | } |
| | 87 | |
|
| | 88 | | #endregion // IPropertyMetadata |
| | 89 | | } |
| | 90 | | } |