Alerting: Fix HCL export for alerts with non-zero "for" field. (#76739)

* Alerting: Fix HCL export for alerts with non-zero "for" field.

Fixes #76734

* fix tests

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
This commit is contained in:
Steve Simpson
2023-10-20 11:09:08 +02:00
committed by GitHub
parent 8985f79aab
commit a0476741f2
7 changed files with 15 additions and 10 deletions

View File

@@ -605,7 +605,7 @@ func TestProvisioningApi(t *testing.T) {
no_data_state = "Alerting"
exec_err_state = "Error"
for = 0
for = "0s"
annotations = {
test = "annotation"
}
@@ -632,7 +632,7 @@ func TestProvisioningApi(t *testing.T) {
no_data_state = "OK"
exec_err_state = "OK"
for = 0
for = "0s"
is_paused = false
}
}