/// <summary> /// Retrieve the query statistic 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='queryStatisticId'> /// The Query Statistic identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <QueryStatistic> GetAsync(this ITopQueryStatisticsOperations operations, string resourceGroupName, string serverName, string queryStatisticId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, queryStatisticId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve the Query-Store top queries for specified metric and aggregation. /// </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 <QueryStatistic> > ListByServerNextAsync(this ITopQueryStatisticsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve the Query-Store top queries for specified metric and aggregation. /// </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 top query statistics. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <QueryStatistic> > ListByServerAsync(this ITopQueryStatisticsOperations operations, string resourceGroupName, string serverName, TopQueryStatisticsInput parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve the Query-Store top queries for specified metric and aggregation. /// </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 top query statistics. /// </param> public static IPage <QueryStatistic> ListByServer(this ITopQueryStatisticsOperations operations, string resourceGroupName, string serverName, TopQueryStatisticsInput parameters) { return(operations.ListByServerAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the query statistic 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='queryStatisticId'> /// The Query Statistic identifier. /// </param> public static QueryStatistic Get(this ITopQueryStatisticsOperations operations, string resourceGroupName, string serverName, string queryStatisticId) { return(operations.GetAsync(resourceGroupName, serverName, queryStatisticId).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the Query-Store top queries for specified metric and aggregation. /// </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 <QueryStatistic> ListByServerNext(this ITopQueryStatisticsOperations operations, string nextPageLink) { return(operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult()); }