offers_metric_definitions
Creates, updates, deletes, gets or lists an offers_metric_definitions
resource.
Overview
Name | offers_metric_definitions |
Type | Resource |
Id | azure_stack.subscriptions_admin.offers_metric_definitions |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
name | string | Metric definition name. |
metricAvailabilities | array | Metric availabilities. |
primaryAggregationType | string | Type of the primary aggregation. |
unit | string | Unit of metrics. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , resourceGroupName , offer | Get 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.
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 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
;