offers_metrics
Creates, updates, deletes, gets or lists an offers_metrics resource.
Overview
| Name | offers_metrics |
| Type | Resource |
| Id | azure_stack.subscriptions_admin.offers_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, offer | Get the offer metrics. |
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 |
|---|---|---|
offer | string | Name of an offer. |
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 offer metrics.
SELECT
endTime,
metricUnit,
metricValues,
startTime,
timeGrain
FROM azure_stack.subscriptions_admin.offers_metrics
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND offer = '{{ offer }}' -- required
;