Interface TopQueryStatisticsClient
public interface TopQueryStatisticsClient
An instance of this class provides access to all the operations defined in TopQueryStatisticsClient.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the query statistic for specified identifier.com.azure.core.http.rest.Response<QueryStatisticInner>
getWithResponse
(String resourceGroupName, String serverName, String queryStatisticId, com.azure.core.util.Context context) Retrieve the query statistic for specified identifier.com.azure.core.http.rest.PagedIterable<QueryStatisticInner>
listByServer
(String resourceGroupName, String serverName, TopQueryStatisticsInput parameters) Retrieve the Query-Store top queries for specified metric and aggregation.com.azure.core.http.rest.PagedIterable<QueryStatisticInner>
listByServer
(String resourceGroupName, String serverName, TopQueryStatisticsInput parameters, com.azure.core.util.Context context) Retrieve the Query-Store top queries for specified metric and aggregation.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<QueryStatisticInner> getWithResponse(String resourceGroupName, String serverName, String queryStatisticId, com.azure.core.util.Context context) Retrieve the query statistic for specified identifier.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serverName
- The name of the server.queryStatisticId
- The Query Statistic identifier.context
- The context to associate with this operation.- Returns:
- represents a Query Statistic along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Retrieve the query statistic for specified identifier.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serverName
- The name of the server.queryStatisticId
- The Query Statistic identifier.- Returns:
- represents a Query Statistic.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByServer
com.azure.core.http.rest.PagedIterable<QueryStatisticInner> listByServer(String resourceGroupName, String serverName, TopQueryStatisticsInput parameters) Retrieve the Query-Store top queries for specified metric and aggregation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serverName
- The name of the server.parameters
- The required parameters for retrieving top query statistics.- Returns:
- a list of query statistics as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByServer
com.azure.core.http.rest.PagedIterable<QueryStatisticInner> listByServer(String resourceGroupName, String serverName, TopQueryStatisticsInput parameters, com.azure.core.util.Context context) Retrieve the Query-Store top queries for specified metric and aggregation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serverName
- The name of the server.parameters
- The required parameters for retrieving top query statistics.context
- The context to associate with this operation.- Returns:
- a list of query statistics as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-