Partilhar via


ComputeBatchModelFactory.BatchPoolUsageMetrics Method

Definition

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.

Applies to