metrics_at_subscription_scopes
Creates, updates, deletes, gets or lists a metrics_at_subscription_scopes
resource.
Overview
Name | metrics_at_subscription_scopes |
Type | Resource |
Id | azure.monitor.metrics_at_subscription_scopes |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The metric Id. |
name | object | The localizable string class. |
displayDescription | string | Detailed description of this metric. |
errorCode | string | 'Success' or the error details on query failures for this metric. |
errorMessage | string | Error message encountered querying this specific metric. |
timeseries | array | The time series returned when a data query is performed. |
type | string | The resource type of the metric resource. |
unit | string | The unit of the metric. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | interval, metricName, region, subscriptionId, timespan | Lists the metric data for a subscription. |
SELECT
examples
Lists the metric data for a subscription.
SELECT
id,
name,
displayDescription,
errorCode,
errorMessage,
timeseries,
type,
unit
FROM azure.monitor.metrics_at_subscription_scopes
WHERE interval = '{{ interval }}'
AND metricName = '{{ metricName }}'
AND region = '{{ region }}'
AND subscriptionId = '{{ subscriptionId }}'
AND timespan = '{{ timespan }}';