Daily Metric Snapshots
This pattern allows you to take a “snapshot” of your key performance indicators (KPIs) every day at midnight and report them to your team.Why this works
- Parallel Execution:
snapshotRevenueandsnapshotActiveUserscapture data simultaneously. - Aggregation:
notifySlackwaits for both snapshots to finish successfully before posting a summary. - Reliability: Partial failures stop the reporting step, ensuring you only report complete data.
Deploying this sequence
Define the full sequence inposthook.toml: