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
Name | Datatype | Description |
---|---|---|
name | object | A database metric name. |
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
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | databaseName, resourceGroupName, serverName, subscriptionId | Returns database metric definitions. |
SELECT
examples
Returns database metric definitions.
SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.sql.databases_metric_definitions
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';