Description | : **Lists the metric values for a resource**. This API uses 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_List", "Description": { "new": "**Lists the metric values for a resource**. This API uses the [default ARM throttling limits](https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/request-limits-and-throttling).", "old": "**Lists the metric values for a resource**." }, "$parameters": [ { "#name": "metricnames", "Description": { "new": "The names of the metrics (comma separated) to retrieve. Limit 20 metrics. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**", "old": "The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**" } } ] }
⚼ Request
GET:
/{resourceUri}/providers/Microsoft.Insights/metrics
{
resourceUri:
string
,
timespan:
string
,
interval:
string
,
metricnames:
string
,
aggregation:
string
,
top:
integer
,
orderby:
string
,
$filter:
string
,
resultType:
string
,
api-version:
string
,
metricnamespace:
string
,
}
⚐ Response (default)
{
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
,
}