Alerting: Add FiredAt field to State (#104046)

* Add FiredAt field to the State

* Update featuretoggle files

* Fix lint errors

* Fix test compilation

* Remove random print line + formatting

* Address PR comments
This commit is contained in:
Fayzal Ghantiwala
2025-04-22 12:16:38 +01:00
committed by GitHub
parent 9ed3c9ee8a
commit 3a054d5e00
17 changed files with 217 additions and 33 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (srv TestingApiSrv) RouteTestGrafanaRuleConfig(c *contextmodel.ReqContext,
alerts := make([]*amv2.PostableAlert, 0, len(transitions))
for _, alertState := range transitions {
alerts = append(alerts, state.StateToPostableAlert(alertState, srv.appUrl))
alerts = append(alerts, state.StateToPostableAlert(alertState, srv.appUrl, srv.featureManager))
}
return response.JSON(http.StatusOK, alerts)