---
title: "Gets lifetime summary statistics for all of the jobs in the specified account."
method: GET
path: "/lifetimejobstats"
tags: ["Jobs"]
---

# Gets lifetime summary statistics for all of the jobs in the specified account.

`GET /lifetimejobstats`

Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.

## Query parameters

- `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 job statistics for the lifetime of the Batch account.

- JobStatistics
  - `url` string, required
  - `startTime` string, date-time, required
  - `lastUpdateTime` string, date-time, required
  - `userCPUTime` string, duration, required
  - `kernelCPUTime` string, duration, required
  - `wallClockTime` string, duration, required — The wall clock time is the elapsed time from when the task started running on a compute node to when it finished (or to the last time the statistics were updated, if the task had not finished by then). If a task was retried, this includes the wall clock time of all the task retries.
  - `readIOps` integer, required
  - `writeIOps` integer, required
  - `readIOGiB` number, double, required
  - `writeIOGiB` number, double, required
  - `numSucceededTasks` integer, required — A task completes successfully if it returns exit code 0.
  - `numFailedTasks` integer, required — A task fails if it exhausts its maximum retry count without returning exit code 0.
  - `numTaskRetries` integer, required
  - `waitTime` string, duration, required — The wait time for a task is defined as the elapsed time between the creation of the task and the start of task execution. (If the task is retried due to failures, the wait time is the time to the most recent task execution.) This value is only reported in the account lifetime statistics; it is not included in the job statistics.

## Other responses

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

---

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