Interface ManagedDatabaseQueriesClient
public interface ManagedDatabaseQueriesClient
An instance of this class provides access to all the operations defined in ManagedDatabaseQueriesClient.
-
Method Summary
Modifier and TypeMethodDescriptionGet query by query id.Get query by query id.com.azure.core.http.rest.Response<ManagedInstanceQueryInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, com.azure.core.util.Context context) Get query by query id.Mono<com.azure.core.http.rest.Response<ManagedInstanceQueryInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query by query id.com.azure.core.http.rest.PagedIterable<QueryStatisticsInner> listByQuery(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query execution statistics by query id.com.azure.core.http.rest.PagedIterable<QueryStatisticsInner> listByQuery(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, String startTime, String endTime, QueryTimeGrainType interval, com.azure.core.util.Context context) Get query execution statistics by query id.com.azure.core.http.rest.PagedFlux<QueryStatisticsInner> listByQueryAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query execution statistics by query id.com.azure.core.http.rest.PagedFlux<QueryStatisticsInner> listByQueryAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, String startTime, String endTime, QueryTimeGrainType interval) Get query execution statistics by query id.
-
Method Details
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<ManagedInstanceQueryInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.- Returns:
- query by query id along with
Responseon successful completion ofMono. - 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.
-
getAsync
Mono<ManagedInstanceQueryInner> getAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.- Returns:
- query by query id on successful completion of
Mono. - 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.
-
getWithResponse
com.azure.core.http.rest.Response<ManagedInstanceQueryInner> getWithResponse(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, com.azure.core.util.Context context) Get query by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.context- The context to associate with this operation.- Returns:
- query by query id 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
ManagedInstanceQueryInner get(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.- Returns:
- query by query id.
- 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.
-
listByQueryAsync
com.azure.core.http.rest.PagedFlux<QueryStatisticsInner> listByQueryAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, String startTime, String endTime, QueryTimeGrainType interval) Get query execution statistics by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.startTime- Start time for observed period.endTime- End time for observed period.interval- The time step to be used to summarize the metric values.- Returns:
- query execution statistics by query id as paginated response with
PagedFlux. - 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.
-
listByQueryAsync
com.azure.core.http.rest.PagedFlux<QueryStatisticsInner> listByQueryAsync(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query execution statistics by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.- Returns:
- query execution statistics by query id as paginated response with
PagedFlux. - 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.
-
listByQuery
com.azure.core.http.rest.PagedIterable<QueryStatisticsInner> listByQuery(String resourceGroupName, String managedInstanceName, String databaseName, String queryId) Get query execution statistics by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.- Returns:
- query execution statistics by query id 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.
-
listByQuery
com.azure.core.http.rest.PagedIterable<QueryStatisticsInner> listByQuery(String resourceGroupName, String managedInstanceName, String databaseName, String queryId, String startTime, String endTime, QueryTimeGrainType interval, com.azure.core.util.Context context) Get query execution statistics by query id.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.databaseName- The name of the database.queryId- The queryId parameter.startTime- Start time for observed period.endTime- End time for observed period.interval- The time step to be used to summarize the metric values.context- The context to associate with this operation.- Returns:
- query execution statistics by query id 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.
-