Skip to main content

wait_statistics

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

Overview

Namewait_statistics
TypeResource
Idazure_extras.rdbms.wait_statistics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
countintegerWait event count observed in this time interval.
databaseNamestringDatabase Name.
endTimestring (date-time)Observation end time.
eventNamestringWait event name.
eventTypeNamestringWait event type name.
queryIdintegerDatabase query identifier.
startTimestring (date-time)Observation start time.
totalTimeInMsnumberTotal time of wait in milliseconds in this time interval.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userIdintegerDatabase user identifier.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, wait_statistics_id, subscription_idRetrieve wait statistics for specified identifier.
list_by_serverselectresource_group_name, server_name, subscription_idRetrieve 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.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring
wait_statistics_idstringThe Wait Statistic identifier. Required.

SELECT examples

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
;