Delen via


PoolOperationsExtensions.ListUsageMetricsAsync Method

Definition

Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Batch.Protocol.Models.PoolUsageMetrics>> ListUsageMetricsAsync (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, Microsoft.Azure.Batch.Protocol.Models.PoolListUsageMetricsOptions poolListUsageMetricsOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListUsageMetricsAsync : Microsoft.Azure.Batch.Protocol.IPoolOperations * Microsoft.Azure.Batch.Protocol.Models.PoolListUsageMetricsOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Batch.Protocol.Models.PoolUsageMetrics>>
<Extension()>
Public Function ListUsageMetricsAsync (operations As IPoolOperations, Optional poolListUsageMetricsOptions As PoolListUsageMetricsOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of PoolUsageMetrics))

Parameters

operations
IPoolOperations

The operations group for this extension method.

poolListUsageMetricsOptions
PoolListUsageMetricsOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.

Applies to