analytics.pipeline to get stage counts and total values, formats a readable summary, and sends it to a Slack channel via webhook. Run it daily on cron or as a scheduled GitHub Action.
The script
Setup
1
Install dependencies
2
Set environment variables
PIPELINE_LIST_ID, run:3
Test it
4
Schedule with cron
Run daily at 9 AM:
GitHub Actions version
The
analytics.pipeline tool returns aggregate data, not individual records. It counts toward the 1,000 calls/min rate limit like any other call.