Skip to main content

offers_metric_definitions

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

Overview

Nameoffers_metric_definitions
TypeResource
Idazure_stack.subscriptions_admin.offers_metric_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringMetric definition name.
metricAvailabilitiesarrayMetric availabilities.
primaryAggregationTypestringType of the primary aggregation.
unitstringUnit of metrics.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, offerGet the metric definitions.

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
offerstringName of an offer.
resourceGroupNamestringThe resource group the resource is located under.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.

SELECT examples

Get the metric definitions.

SELECT
name,
metricAvailabilities,
primaryAggregationType,
unit
FROM azure_stack.subscriptions_admin.offers_metric_definitions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND offer = '{{ offer }}' -- required
;