Skip to main content

plans_metric_definitions

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

Overview

Nameplans_metric_definitions
TypeResource
Idazure_stack.subscriptions_admin.plans_metric_definitions

Fields

NameDatatypeDescription
namestringMetric definition name.
metricAvailabilitiesarrayList of metric definitions.
primaryAggregationTypestringThe primary aggregation type for resource metric.
unitstringThe resource metric unit.

Methods

NameAccessible byRequired ParamsDescription
listSELECTplan, resourceGroupName, subscriptionIdGet the metric definitions of the specified plan.

SELECT examples

Get the metric definitions of the specified plan.

SELECT
name,
metricAvailabilities,
primaryAggregationType,
unit
FROM azure_stack.subscriptions_admin.plans_metric_definitions
WHERE plan = '{{ plan }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';