top_query_statistics
Creates, updates, deletes, gets or lists a top_query_statistics resource.
Overview
| Name | top_query_statistics |
| Type | Resource |
| Id | azure.maria_db.top_query_statistics |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_server
| Name | Datatype | Description |
|---|---|---|
properties | object | The properties of a query statistic. |
| Name | Datatype | Description |
|---|---|---|
properties | object | The properties of a query statistic. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | subscriptionId, resourceGroupName, serverName, queryStatisticId | Retrieve the query statistic for specified identifier. | |
list_by_server | select | subscriptionId, resourceGroupName, serverName | Retrieve the Query-Store top queries for specified metric and aggregation. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
queryStatisticId | string | The Query Statistic identifier. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serverName | string | The name of the server. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- get
- list_by_server
Retrieve the query statistic for specified identifier.
SELECT
properties
FROM azure.maria_db.top_query_statistics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND queryStatisticId = '{{ queryStatisticId }}' -- required
;
Retrieve the Query-Store top queries for specified metric and aggregation.
SELECT
properties
FROM azure.maria_db.top_query_statistics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
;