Description | : **Lists the metric data for a subscription**. This API used the [default ARM throttling limits](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/request-limits-and-throttling). |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "Metrics_ListAtSubscriptionScope", "Description": { "new": "**Lists the metric data for a subscription**. This API used the [default ARM throttling limits](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/request-limits-and-throttling).", "old": "**Lists the metric data for a subscription**." }, "$parameters": [ { "#name": "metricnames", "Description": { "new": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics.", "old": "The names of the metrics (comma separated) to retrieve." } } ] }
⚼ Request
GET:
/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics
{
subscriptionId:
string
,
api-version:
string
,
region:
string
,
timespan:
string
,
interval:
string
,
metricnames:
string
,
aggregation:
string
,
top:
integer
,
orderby:
string
,
$filter:
string
,
resultType:
string
,
metricnamespace:
string
,
AutoAdjustTimegrain:
boolean
,
ValidateDimensions:
boolean
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
}
⚐ Response (200)
{
cost:
number
,
timespan:
string
,
interval:
string
,
namespace:
string
,
resourceregion:
string
,
value:
}
[
]
,
{
,
id:
string
,
type:
string
,
name:
{
,
value:
string
,
localizedValue:
string
,
}
displayDescription:
string
,
errorCode:
string
,
errorMessage:
string
,
unit:
enum
,
timeseries:
}
[
]
,
{
,
metadatavalues:
[
]
,
{
,
name:
{
,
value:
string
,
localizedValue:
string
,
}
value:
string
,
}
data:
}
[
]
,
{
,
timeStamp:
string
,
average:
number
,
minimum:
number
,
maximum:
number
,
total:
number
,
count:
number
,
}