| | 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 | | /// Usage metrics for a Pool across an aggregation interval. |
| | 18 | | /// </summary> |
| | 19 | | public partial class PoolUsageMetrics |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the PoolUsageMetrics class. |
| | 23 | | /// </summary> |
| 1 | 24 | | public PoolUsageMetrics() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 1 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the PoolUsageMetrics class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="poolId">The ID of the Pool whose metrics are |
| | 33 | | /// aggregated in this entry.</param> |
| | 34 | | /// <param name="startTime">The start time of the aggregation interval |
| | 35 | | /// covered by this entry.</param> |
| | 36 | | /// <param name="endTime">The end time of the aggregation interval |
| | 37 | | /// covered by this entry.</param> |
| | 38 | | /// <param name="vmSize">The size of virtual machines in the Pool. All |
| | 39 | | /// VMs in a Pool are the same size.</param> |
| | 40 | | /// <param name="totalCoreHours">The total core hours used in the Pool |
| | 41 | | /// during this aggregation interval.</param> |
| 0 | 42 | | public PoolUsageMetrics(string poolId, System.DateTime startTime, System.DateTime endTime, string vmSize, double |
| | 43 | | { |
| 0 | 44 | | PoolId = poolId; |
| 0 | 45 | | StartTime = startTime; |
| 0 | 46 | | EndTime = endTime; |
| 0 | 47 | | VmSize = vmSize; |
| 0 | 48 | | TotalCoreHours = totalCoreHours; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the ID of the Pool whose metrics are aggregated in |
| | 59 | | /// this entry. |
| | 60 | | /// </summary> |
| | 61 | | [JsonProperty(PropertyName = "poolId")] |
| 0 | 62 | | public string PoolId { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets the start time of the aggregation interval covered by |
| | 66 | | /// this entry. |
| | 67 | | /// </summary> |
| | 68 | | [JsonProperty(PropertyName = "startTime")] |
| 2 | 69 | | public System.DateTime StartTime { get; set; } |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets the end time of the aggregation interval covered by |
| | 73 | | /// this entry. |
| | 74 | | /// </summary> |
| | 75 | | [JsonProperty(PropertyName = "endTime")] |
| 0 | 76 | | public System.DateTime EndTime { get; set; } |
| | 77 | |
|
| | 78 | | /// <summary> |
| | 79 | | /// Gets or sets the size of virtual machines in the Pool. All VMs in a |
| | 80 | | /// Pool are the same size. |
| | 81 | | /// </summary> |
| | 82 | | /// <remarks> |
| | 83 | | /// For information about available sizes of virtual machines in Pools, |
| | 84 | | /// see Choose a VM size for Compute Nodes in an Azure Batch Pool |
| | 85 | | /// (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). |
| | 86 | | /// </remarks> |
| | 87 | | [JsonProperty(PropertyName = "vmSize")] |
| 0 | 88 | | public string VmSize { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets the total core hours used in the Pool during this |
| | 92 | | /// aggregation interval. |
| | 93 | | /// </summary> |
| | 94 | | [JsonProperty(PropertyName = "totalCoreHours")] |
| 2 | 95 | | public double TotalCoreHours { get; set; } |
| | 96 | |
|
| | 97 | | } |
| | 98 | | } |