Alerting: Implement setting of version message in convert API. (#114331)

Part 2 of adding version messages to the `alert_rule_version` able. This allows
setting the message via a header when using the Prometheus conversion API,
which can be useful for e.g. linking changes back to source control.
This commit is contained in:
Steve Simpson authored and GitHub committed 2025-11-25 11:20:28 +01:00
1 parent b57e6383e4
commit d50e2a94a3
16 files changed
+212 -101

No files matched your search

@@ -457,7 +457,7 @@ func createAlertRuleGroup(t *testing.T, ctx context.Context, service *Service, u
Rules: rules,
}
err := service.ngAlert.Api.AlertRules.ReplaceRuleGroup(ctx, user, group, "")
err := service.ngAlert.Api.AlertRules.ReplaceRuleGroup(ctx, user, group, "", "")
require.NoError(t, err)
return group