Skip to main content

metrics_at_subscription_scopes

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

Overview

Namemetrics_at_subscription_scopes
TypeResource
Idazure.monitor.metrics_at_subscription_scopes

Fields

NameDatatypeDescription
idstringThe metric Id.
nameobjectThe localizable string class.
displayDescriptionstringDetailed description of this metric.
errorCodestring'Success' or the error details on query failures for this metric.
errorMessagestringError message encountered querying this specific metric.
timeseriesarrayThe time series returned when a data query is performed.
typestringThe resource type of the metric resource.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTinterval, metricName, region, subscriptionId, timespanLists the metric data for a subscription.

SELECT examples

Lists the metric data for a subscription.

SELECT
id,
name,
displayDescription,
errorCode,
errorMessage,
timeseries,
type,
unit
FROM azure.monitor.metrics_at_subscription_scopes
WHERE interval = '{{ interval }}'
AND metricName = '{{ metricName }}'
AND region = '{{ region }}'
AND subscriptionId = '{{ subscriptionId }}'
AND timespan = '{{ timespan }}';