Skip to main content

databases_metrics

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

Overview

Namedatabases_metrics
TypeResource
Idazure.sql.databases_metrics

Fields

NameDatatypeDescription
nameobjectA database metric name.
endTimestringThe end time for the metric (ISO-8601 format).
metricValuesarrayThe metric values for the specified time window and timestep.
startTimestringThe 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

NameAccessible byRequired ParamsDescription
listSELECT$filter, databaseName, resourceGroupName, serverName, subscriptionIdReturns database metrics.

SELECT examples

Returns database metrics.

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