hyperdx/packages
Drew Davis 1fada918c7
feat: Support alerts on Raw SQL Number Charts (#2114)
## Summary

This PR extends alerting support to Raw SQL Number charts.

Number charts

1. Do not use the interval parameter, and thus return one value for the entirety of the alert time range.
2. Are assumed to not be using a group-by (the value of the chart is taken from the first result row only).

### Screenshots or video

<img width="1383" height="1071" alt="Screenshot 2026-04-14 at 12 54 18 PM" src="https://github.com/user-attachments/assets/e74c3ad8-c95a-4668-8332-86f66f7543ba" />

### How to test locally or on Vercel

To test locally, create a raw-sql based number chart, create an alert on it, and view the alert logs for the output.

You can also run the following to run a "webhook" destination that echos what it receives, for testing notification content:

```bash
npx http-echo-server
```

### References



- Linear Issue: Closes HDX-3987
- Related PRs:
2026-04-15 11:50:45 +00:00
..
api feat: Support alerts on Raw SQL Number Charts (#2114) 2026-04-15 11:50:45 +00:00
app feat: Support alerts on Raw SQL Number Charts (#2114) 2026-04-15 11:50:45 +00:00
cli [HDX-3964] Add event pattern mining to CLI (Shift+P) (#2106) 2026-04-14 18:03:56 +00:00
common-utils feat: Support alerts on Raw SQL Number Charts (#2114) 2026-04-15 11:50:45 +00:00
otel-collector [HDX-3929] Migrate OTel Collector build to use OCB (OpenTelemetry Collector Builder) (#2109) 2026-04-14 12:04:20 -07:00