---
title: "GET /lifetimejobstats"
method: GET
path: "/lifetimejobstats"
tags: ["Jobs"]
---

# GET /lifetimejobstats

`GET /lifetimejobstats`

Gets lifetime summary statistics for all of the jobs in the specified account. Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

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

## Response `200`

OK

- JobStatistics — Resource usage statistics for a job.
  - `url` string, required — The URL of the statistics.
  - `startTime` string, date-time, required — The start time of the time range covered by the statistics.
  - `lastUpdateTime` string, date-time, required — The time at which the statistics were last updated. All statistics are limited to the range between startTime and lastUpdateTime.
  - `userCPUTime` string, duration, required — The total user mode CPU time (summed across all cores and all compute nodes) consumed by all tasks in the job.
  - `kernelCPUTime` string, duration, required — The total kernel mode CPU time (summed across all cores and all compute nodes) consumed by all tasks in the job.
  - `wallClockTime` string, duration, required — The total wall clock time of all tasks in the job.
  - `readIOps` integer, required — The total number of disk read operations made by all tasks in the job.
  - `writeIOps` integer, required — The total number of disk write operations made by all tasks in the job.
  - `readIOGiB` number, double, required — The total gibibytes read from disk by all tasks in the job.
  - `writeIOGiB` number, double, required — The total gibibytes written to disk by all tasks in the job.
  - `numSucceededTasks` integer, required — The total number of tasks successfully completed in the job during the given time range.
  - `numFailedTasks` integer, required — The total number of tasks in the job that failed during the given time range.
  - `numTaskRetries` integer, required — The total number of retries on all the tasks in the job during the given time range.
  - `waitTime` string, duration, required — The total wait time of all tasks in the job. 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.)

## Other responses

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

---

[API](https://skmtc.dev/azure/apis/batch-batch.md) · [All operations](https://skmtc.dev/azure/apis/batch-batch/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/batch-batch/revisions/bee2d837bf8f/schema)
