你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeBatchModelFactory.BatchPoolUsageMetrics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BatchPoolUsageMetrics.
public static Azure.Compute.Batch.BatchPoolUsageMetrics BatchPoolUsageMetrics (string poolId = default, DateTimeOffset startTime = default, DateTimeOffset endTime = default, string vmSize = default, float totalCoreHours = 0);
static member BatchPoolUsageMetrics : string * DateTimeOffset * DateTimeOffset * string * single -> Azure.Compute.Batch.BatchPoolUsageMetrics
Public Shared Function BatchPoolUsageMetrics (Optional poolId As String = Nothing, Optional startTime As DateTimeOffset = Nothing, Optional endTime As DateTimeOffset = Nothing, Optional vmSize As String = Nothing, Optional totalCoreHours As Single = 0) As BatchPoolUsageMetrics
Parameters
- poolId
- String
The ID of the Pool whose metrics are aggregated in this entry.
- startTime
- DateTimeOffset
The start time of the aggregation interval covered by this entry.
- endTime
- DateTimeOffset
The end time of the aggregation interval covered by this entry.
- vmSize
- String
The size of virtual machines in the Pool. All VMs in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
- totalCoreHours
- Single
The total core hours used in the Pool during this aggregation interval.
Returns
A new BatchPoolUsageMetrics instance for mocking.