Skip to main content

top_query_statistics

Creates, updates, deletes, gets or lists a top_query_statistics resource.

Overview

Nametop_query_statistics
TypeResource
Idazure.maria_db.top_query_statistics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe properties of a query statistic.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, serverName, queryStatisticIdRetrieve the query statistic for specified identifier.
list_by_serverselectsubscriptionId, resourceGroupName, serverNameRetrieve 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.

NameDatatypeDescription
queryStatisticIdstringThe Query Statistic identifier.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serverNamestringThe name of the server.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

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
;