Microsoft.Insights (stable:2024-02-01)

2025/07/16 • 1 new methods

Batch (new)
Description Lists the metric values for multiple resources.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/metrics:getBatch
{
api-version: string ,
subscriptionId: string ,
starttime: string ,
endtime: string ,
interval: string ,
metricnamespace: string ,
metricnames: array ,
aggregation: string ,
top: integer ,
orderby: string ,
filter: string ,
rollupby: string ,
batchRequest:
{
resourceids:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
values:
[
{
starttime: string ,
endtime: string ,
interval: string ,
namespace: string ,
resourceregion: string ,
resourceid: 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 ,
}
,
]
,
}
,
]
,
}
,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}