Skip to main content

metric_definitions_at_subscription_scopes

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

Overview

Namemetric_definitions_at_subscription_scopes
TypeResource
Idazure.monitor.metric_definitions_at_subscription_scopes

Fields

NameDatatypeDescription
idstringThe resource identifier of the metric definition.
nameobjectThe localizable string class.
categorystringCustom category name for this metric.
dimensionsarrayThe name and the display name of the dimension, i.e. it is a localizable string.
displayDescriptionstringDetailed description of this metric.
isDimensionRequiredbooleanFlag to indicate whether the dimension is required.
metricAvailabilitiesarrayThe collection of what aggregation intervals are available to be queried.
metricClassstringThe class of the metric.
namespacestringThe namespace the metric belongs to.
primaryAggregationTypestringThe aggregation type of the metric.
resourceIdstringThe resource identifier of the resource that emitted the metric.
supportedAggregationTypesarrayThe collection of what aggregation types are supported.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTregion, subscriptionIdLists the metric definitions for the subscription.

SELECT examples

Lists the metric definitions for the subscription.

SELECT
id,
name,
category,
dimensions,
displayDescription,
isDimensionRequired,
metricAvailabilities,
metricClass,
namespace,
primaryAggregationType,
resourceId,
supportedAggregationTypes,
unit
FROM azure.monitor.metric_definitions_at_subscription_scopes
WHERE region = '{{ region }}'
AND subscriptionId = '{{ subscriptionId }}';