wait_statistics
Creates, updates, deletes, gets or lists a wait_statistics resource.
Overview
| Name | wait_statistics |
| Type | Resource |
| Id | azure_extras.rdbms.wait_statistics |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_server
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name | string | The name of the resource. |
count | integer | Wait event count observed in this time interval. |
databaseName | string | Database Name. |
endTime | string (date-time) | Observation end time. |
eventName | string | Wait event name. |
eventTypeName | string | Wait event type name. |
queryId | integer | Database query identifier. |
startTime | string (date-time) | Observation start time. |
totalTimeInMs | number | Total time of wait in milliseconds in this time interval. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userId | integer | Database user identifier. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name | string | The name of the resource. |
count | integer | Wait event count observed in this time interval. |
databaseName | string | Database Name. |
endTime | string (date-time) | Observation end time. |
eventName | string | Wait event name. |
eventTypeName | string | Wait event type name. |
queryId | integer | Database query identifier. |
startTime | string (date-time) | Observation start time. |
totalTimeInMs | number | Total time of wait in milliseconds in this time interval. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userId | integer | Database user identifier. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, server_name, wait_statistics_id, subscription_id | Retrieve wait statistics for specified identifier. | |
list_by_server | select | resource_group_name, server_name, subscription_id | Retrieve wait statistics for specified aggregation window. |
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 |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
server_name | string | The name of the server. Required. |
subscription_id | string | |
wait_statistics_id | string | The Wait Statistic identifier. Required. |
SELECT examples
- get
- list_by_server
Retrieve wait statistics for specified identifier.
SELECT
id,
name,
count,
databaseName,
endTime,
eventName,
eventTypeName,
queryId,
startTime,
totalTimeInMs,
type,
userId
FROM azure_extras.rdbms.wait_statistics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND wait_statistics_id = '{{ wait_statistics_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Retrieve wait statistics for specified aggregation window.
SELECT
id,
name,
count,
databaseName,
endTime,
eventName,
eventTypeName,
queryId,
startTime,
totalTimeInMs,
type,
userId
FROM azure_extras.rdbms.wait_statistics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND server_name = '{{ server_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;