---
title: "Execution stats over an interval (admin only)."
method: GET
path: "/admin/scheduled_tasks/execution_stats"
tags: ["Scheduled Tasks"]
---

# Execution stats over an interval (admin only).

`GET /admin/scheduled_tasks/execution_stats`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/admin/scheduled_tasks/execution_stats`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/admin/scheduled_tasks/execution_stats/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `interval` string

## Response `200`

OK

- ScheduledTaskExecutionStats
  - `daily_executions` object[]
    - `day` string
    - `total` integer
    - `completed` integer
    - `failed` integer
  - `totals` object
    - `total_executions` integer
    - `completed_executions` integer
    - `failed_executions` integer
    - `running_executions` integer
    - `total_tasks` integer
    - `active_tasks` integer
  - `top_tasks` object[]
    - `task_id` string, uuid
    - `task_name` string
    - `username` string
    - `task_type` string
    - `execution_count` integer
    - `completed_count` integer
    - `failed_count` integer

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
