grafana/pkg/services/ngalert/eval
George Robinson 456dac1303
Expand the value of math and reduce expressions in annotations and labels (#36611)
* Expand the value of math and reduce expressions in annotations and labels

This commit makes it possible to use the values of reduce and math
expressions in annotations and labels via their RefIDs. It uses the
Stringer interface to ensure that "{{ $values.A }}" still prints the
value in decimal format while also making the labels for each RefID
available with "{{ $values.A.Labels }}" and the float64 value with
"{{ $values.A.Value }}"
2021-07-15 13:10:56 +01:00
..
eval_test.go Alerting: Eval pkg tests and more specific error handling (#33496) 2021-04-29 07:27:32 -04:00
eval.go Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00
extract_md_test.go Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00
extract_md.go Expand the value of math and reduce expressions in annotations and labels (#36611) 2021-07-15 13:10:56 +01:00