PoolOperations.GetAllLifetimeStatisticsAsync(IEnumerable<BatchClientBehavior>, CancellationToken) Method

Definition

Gets lifetime summary statistics for all of the pools in the current account. Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.PoolStatistics> GetAllLifetimeStatisticsAsync (System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = null, System.Threading.CancellationToken cancellationToken = null);
member this.GetAllLifetimeStatisticsAsync : seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.PoolStatistics>

Parameters

additionalBehaviors
System.Collections.Generic.IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken for controlling the lifetime of the asynchronous operation.

Returns

System.Threading.Tasks.Task<PoolStatistics>

The aggregated pool statistics.

Remarks

The get statistics operation runs asynchronously.

Applies to