Skip to main content

plans_metrics

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

Overview

Nameplans_metrics
TypeResource
Idazure_stack.subscriptions_admin.plans_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
endTimestring (date-time)End time of the metric.
metricUnitstringUnit of metrics.
metricValuesarrayCollected metric values in the timespan.
startTimestring (date-time)Start time of the metric.
timeGrainstringTimespan of the metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, planGet the metrics of the specified plan.

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
planstringName of the plan.
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 metrics of the specified plan.

SELECT
endTime,
metricUnit,
metricValues,
startTime,
timeGrain
FROM azure_stack.subscriptions_admin.plans_metrics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND plan = '{{ plan }}' -- required
;