Skip to main content

elastic_pools_metric_definitions

Creates, updates, deletes, gets or lists an elastic_pools_metric_definitions resource.

Overview

Nameelastic_pools_metric_definitions
TypeResource
Idazure.sql.elastic_pools_metric_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectThe name information for the metric.
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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, serverName, elasticPoolNameReturns elastic pool 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.

NameDatatypeDescription
elasticPoolNamestringThe name of the elastic pool.
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 elastic pool metric definitions.

SELECT
name,
metricAvailabilities,
primaryAggregationType,
resourceUri,
unit
FROM azure.sql.elastic_pools_metric_definitions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND elasticPoolName = '{{ elasticPoolName }}' -- required
;