grafana/pkg/services/ngalert
George Robinson 5caf6cb369
Change templateCaptureValue to support using template functions (#38766)
* Change templateCaptureValue to support using template functions

This commit changes templateCaptureValue to use float64 for the value
instead of *float64. This change means that annotations and labels can
use the float64 value with functions such as printf and avoid having to
check for nil. It also means that absent values are now printed as 0.

* Use math.NaN() instead of 0 for absent value
2021-09-08 10:46:15 +01:00
..
api Alerting: some fixes for updating rules via the API (#38764) 2021-09-02 19:38:42 +03:00
eval Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00
logging Alerting: Allow the notifier to log (#34232) 2021-05-17 18:06:47 +01:00
metrics Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
models Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
notifier Alerting: Fix flake on test receiver tests (#38511) 2021-08-24 17:22:11 +01:00
schedule Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sender Alerting: Send alerts to external Alertmanager(s) (#37298) 2021-08-06 13:06:56 +01:00
state Change templateCaptureValue to support using template functions (#38766) 2021-09-08 10:46:15 +01:00
store Chore: update all +build statements (#38782) 2021-09-01 17:38:56 +03:00
tests Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
ngalert.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00