Microsoft.Azure.Commands.Batch.Models.BatchClient.GetAllPoolsLifetimeStatistics C# (CSharp) Method

GetAllPoolsLifetimeStatistics() public method

Gets all pools lifetime summary statistics
public GetAllPoolsLifetimeStatistics ( BatchAccountContext context, IEnumerable additionBehaviors = null ) : PSPoolStatistics
context BatchAccountContext The account to use.
additionBehaviors IEnumerable Additional client behaviors to perform.
return PSPoolStatistics
        public PSPoolStatistics GetAllPoolsLifetimeStatistics(BatchAccountContext context, IEnumerable<BatchClientBehavior> additionBehaviors = null)
        {
            PoolOperations poolOperations = context.BatchOMClient.PoolOperations;

            WriteVerbose(string.Format(Resources.GetAllPoolsLifetimeStatistics));

            PoolStatistics poolStatistics = poolOperations.GetAllPoolsLifetimeStatistics(additionBehaviors);
            PSPoolStatistics psPoolStatistics = new PSPoolStatistics(poolStatistics);
            return psPoolStatistics;
        }
BatchClient