Microsoft.Insights (stable:2019-07-01)

2024/12/11 • 1 updated methods

Metrics_List (updated)
Description **Lists the metric values for a resource**. 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_List",
  "Description": {
    "new": "**Lists the metric values for a resource**. 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 values for a resource**."
  },
  "$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:  /{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 ,
AutoAdjustTimegrain: boolean ,
ValidateDimensions: boolean ,
}

⚐ 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 ,
}
,
]
,
}
,
]
,
}
,
]
,
}