/// <summary>
 /// Retrieve wait statistics for specified identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='waitStatisticsId'>
 /// The Wait Statistic identifier.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WaitStatistic> GetAsync(this IWaitStatisticsOperations operations, string resourceGroupName, string serverName, string waitStatisticsId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, waitStatisticsId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieve wait statistics for specified aggregation window.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <WaitStatistic> > ListByServerNextAsync(this IWaitStatisticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieve wait statistics for specified aggregation window.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='parameters'>
 /// The required parameters for retrieving wait statistics.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <WaitStatistic> > ListByServerAsync(this IWaitStatisticsOperations operations, string resourceGroupName, string serverName, WaitStatisticsInput parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieve wait statistics for specified aggregation window.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='parameters'>
 /// The required parameters for retrieving wait statistics.
 /// </param>
 public static IPage <WaitStatistic> ListByServer(this IWaitStatisticsOperations operations, string resourceGroupName, string serverName, WaitStatisticsInput parameters)
 {
     return(operations.ListByServerAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve wait statistics for specified identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='waitStatisticsId'>
 /// The Wait Statistic identifier.
 /// </param>
 public static WaitStatistic Get(this IWaitStatisticsOperations operations, string resourceGroupName, string serverName, string waitStatisticsId)
 {
     return(operations.GetAsync(resourceGroupName, serverName, waitStatisticsId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve wait statistics for specified aggregation window.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <WaitStatistic> ListByServerNext(this IWaitStatisticsOperations operations, string nextPageLink)
 {
     return(operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult());
 }