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

GetAllJobsLifetimeStatistics() public method

Gets lifetime summary statistics for all of the jobs in the specified account.
public GetAllJobsLifetimeStatistics ( BatchAccountContext context, IEnumerable additionalBehaviors = null ) : PSJobStatistics
context BatchAccountContext The account to use.
additionalBehaviors IEnumerable Additional client behaviors to perform.
return PSJobStatistics
        public PSJobStatistics GetAllJobsLifetimeStatistics(BatchAccountContext context, IEnumerable<BatchClientBehavior> additionalBehaviors = null)
        {
            WriteVerbose(Resources.GetAllJobsLifetimeStatistics);

            JobOperations jobOperations = context.BatchOMClient.JobOperations;
            JobStatistics jobStatistics = jobOperations.GetAllJobsLifetimeStatistics(additionalBehaviors);
            PSJobStatistics psJobStatistics = new PSJobStatistics(jobStatistics);

            return psJobStatistics;
        }
    }
BatchClient