dag-health-rollup
Aggregates DAG health metrics including success rate, run count breakdown, average duration, and last failed run details to assess if a DAG is healthy in one call.
Instructions
Aggregated DAG health: success-rate over the last N runs + count breakdown (succeeded/failed/queued) + average duration + last-failed-run id + (optional) failing task instances. Replaces the airflow-list-runs + airflow-get-task-instances combo for 'is this DAG healthy right now?'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dagId | Yes | Airflow DAG id | |
| recentRuns | No | ||
| includeFailingTasks | No | If true, fetch task instances for the most recent failed run | |
| extractFields | No | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response tokens dramatically on large entities. |