Microsoft.Insights (stable:2021-05-01)

2024/12/11 • 3 updated methods

Metrics_ListAtSubscriptionScope (updated)
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 ,
}
,
]
,
}
,
]
,
}
,
]
,
}
Metrics_ListAtSubscriptionScopePost (updated)
Description **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. 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_ListAtSubscriptionScopePost",
  "Description": {
    "new": "**Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. 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 can be specified on either query params or the body."
  },
  "$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

POST:  /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 ,
body:
{
timespan: string ,
interval: string ,
metricNames: string ,
aggregation: string ,
filter: string ,
top: integer ,
orderBy: string ,
rollUpBy: string ,
resultType: enum ,
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 ,
}
,
]
,
}
,
]
,
}
,
]
,
}
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 ,
}
,
]
,
}
,
]
,
}
,
]
,
}