databases_metric_definitions
Creates, updates, deletes, gets or lists a databases_metric_definitions
resource.
Overview
Name | databases_metric_definitions |
Type | Resource |
Id | azure.sql.databases_metric_definitions |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
name | object | The name information for the metric. |
metricAvailabilities | array | The list of database metric availabilities for the metric. |
primaryAggregationType | string | The primary aggregation type defining how metric values are displayed. |
resourceUri | string | The resource uri of the database. |
unit | string | The unit of the metric. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , resourceGroupName , serverName , databaseName | Returns database metric definitions. |
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 |
---|---|---|
databaseName | string | The name of the database. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
serverName | string | The name of the server. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- list
Returns database metric definitions.
SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.sql.databases_metric_definitions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND databaseName = '{{ databaseName }}' -- required
;