Skip to main content

elastic_pools_metrics

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

Overview

Nameelastic_pools_metrics
TypeResource
Idazure.sql.elastic_pools_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nameobjectThe name information for the metric.
endTimestring (date-time)The end time for the metric (ISO-8601 format).
metricValuesarrayThe metric values for the specified time window and timestep.
startTimestring (date-time)The start time for the metric (ISO-8601 format).
timeGrainstringThe time step to be used to summarize the metric values.
unitstringThe unit of the metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, serverName, elasticPoolName, $filterReturns elastic pool metrics.

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
$filterstringAn OData filter expression that describes a subset of metrics to return.
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 metrics.

SELECT
name,
endTime,
metricValues,
startTime,
timeGrain,
unit
FROM azure.sql.elastic_pools_metrics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND elasticPoolName = '{{ elasticPoolName }}' -- required
AND $filter = '{{ $filter }}' -- required
;