---
title: "Get per-stage task statistics"
method: GET
path: "/api/v1/databricks/spark/{application_id}/task-stats"
tags: ["DATABRICKS", "Databricks", "Databricks Spark"]
deprecated: true
---

# Get per-stage task statistics

`GET /api/v1/databricks/spark/{application_id}/task-stats`

> **Deprecated.**

Get per-stage task statistics with percentiles.

## Path parameters

- `application_id` string, required

## Query parameters

- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- SparkTaskStatsResponse — Response for per-stage task statistics.
  - `stages` SparkTaskStats[], required
    - `stage_id` integer, required
    - `task_count` integer
    - `avg_duration_ms` number
    - `min_duration_ms` number
    - `q1_duration_ms` number
    - `p50_duration_ms` number
    - `q3_duration_ms` number
    - `p90_duration_ms` number
    - `max_duration_ms` number
    - `gc_ratio_pct` number
    - `shuffle_read_bytes` number
    - `shuffle_write_bytes` number
    - `spill_memory_bytes` number
    - `spill_disk_bytes` number
    - `skew_ratio` number, nullable
  - `total_count` integer, required — Total number of stages

## Other responses

- `403` — Not authorized
- `404` — No ClickHouse database configured
- `422` — Validation Error

---

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