Skip to main content

server_usages

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

Overview

Nameserver_usages
TypeResource
Idazure.sql.server_usages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the server usage metric.
currentValuenumber (double)The current value of the metric.
displayNamestringThe metric display name.
limitnumber (double)The current limit of the metric.
nextResetTimestring (date-time)The next reset time for the metric (ISO8601 format).
resourceNamestringThe name of the resource.
unitstringThe units of the metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_serverselectsubscriptionId, resourceGroupName, serverNameReturns server usages.

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
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Returns server usages.

SELECT
name,
currentValue,
displayName,
limit,
nextResetTime,
resourceName,
unit
FROM azure.sql.server_usages
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
;