Skip to main content

databases_metric_definitions

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

Overview

Namedatabases_metric_definitions
TypeResource
Idazure.sql.databases_metric_definitions

Fields

NameDatatypeDescription
nameobjectA database metric name.
metricAvailabilitiesarrayThe list of database metric availabilities for the metric.
primaryAggregationTypestringThe primary aggregation type defining how metric values are displayed.
resourceUristringThe resource uri of the database.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdReturns 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 }}';