TopQueryStatisticsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:top_query_statistics> attribute.
Constructor
TopQueryStatisticsOperations(*args, **kwargs)
Methods
| get |
Retrieve the query statistic for specified identifier. |
| list_by_server |
Retrieve the Query-Store top queries for specified metric and aggregation. |
get
Retrieve the query statistic for specified identifier.
async get(resource_group_name: str, server_name: str, query_statistic_id: str, **kwargs: Any) -> QueryStatistic
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
query_statistic_id
Required
|
The Query Statistic identifier. Required. |
Returns
| Type | Description |
|---|---|
|
QueryStatistic or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_server
Retrieve the Query-Store top queries for specified metric and aggregation.
list_by_server(resource_group_name: str, server_name: str, parameters: _models.TopQueryStatisticsInput, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncItemPaged['_models.QueryStatistic']
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
parameters
Required
|
The required parameters for retrieving top query statistics. Is either a TopQueryStatisticsInput type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either QueryStatistic or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.rdbms.mysql.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv198\\Lib\\site-packages\\azure\\mgmt\\rdbms\\mysql\\models\\__init__.py'>