Skip to main content

metrics_at_subscription_scope_posts

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

Overview

Namemetrics_at_subscription_scope_posts
TypeResource
Idazure.monitor.metrics_at_subscription_scope_posts

Fields

NameDatatypeDescription
idstringThe metric Id.
nameobjectThe localizable string class.
displayDescriptionstringDetailed description of this metric.
errorCodestring'Success' or the error details on query failures for this metric.
errorMessagestringError message encountered querying this specific metric.
timeseriesarrayThe time series returned when a data query is performed.
typestringThe resource type of the metric resource.
unitstringThe unit of the metric.

Methods

NameAccessible byRequired ParamsDescription
listSELECTinterval, metricName, region, subscriptionId, timespanLists the metric data for a subscription. Parameters can be specified on either query params or the body.

SELECT examples

Lists the metric data for a subscription. Parameters can be specified on either query params or the body.

SELECT
id,
name,
displayDescription,
errorCode,
errorMessage,
timeseries,
type,
unit
FROM azure.monitor.metrics_at_subscription_scope_posts
WHERE interval = '{{ interval }}'
AND metricName = '{{ metricName }}'
AND region = '{{ region }}'
AND subscriptionId = '{{ subscriptionId }}'
AND timespan = '{{ timespan }}';