plans_metrics
Creates, updates, deletes, gets or lists a plans_metrics
resource.
Overview
Name | plans_metrics |
Type | Resource |
Id | azure_stack.subscriptions_admin.plans_metrics |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
endTime | string (date-time) | End time of the metric. |
metricUnit | string | Unit of metrics. |
metricValues | array | Collected metric values in the timespan. |
startTime | string (date-time) | Start time of the metric. |
timeGrain | string | Timespan of the metric. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , resourceGroupName , plan | Get 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.
Name | Datatype | Description |
---|---|---|
plan | string | Name of the plan. |
resourceGroupName | string | The resource group the resource is located under. |
subscriptionId | string | Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call. |
SELECT
examples
- list
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
;