---
title: "Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account."
method: GET
path: "/poolusagemetrics"
tags: ["Pools"]
---

# Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account.

`GET /poolusagemetrics`

If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.

## Query parameters

- `starttime` string, date-time
- `endtime` string, date-time
- `$filter` string
- `maxresults` integer
- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

A response containing the list of Pool usage details.

- PoolListUsageMetricsResult
  - `value` PoolUsageMetrics[]
    - `poolId` string, required
    - `startTime` string, date-time, required
    - `endTime` string, date-time, required
    - `vmSize` string, required — For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
    - `totalCoreHours` number, double, required
  - `odata.nextLink` string

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.net/azure/apis/batchservice.md) · [All operations](https://skmtc.net/azure/apis/batchservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batchservice/versions/4c9161203dbe/schema)
