Chore: go.mod updates (#110957)

This commit is contained in:
Ryan McKinley
2025-09-15 09:01:45 +00:00
committed by GitHub
parent f73cb477cb
commit afc08dbbbc
38 changed files with 240 additions and 149 deletions
@@ -182,7 +182,7 @@ func validateRecordingRuleFields(in *apimodels.PostableExtendedRuleNode, newRule
if !metricName.IsValid() {
return ngmodels.AlertRule{}, fmt.Errorf("%w: %s", ngmodels.ErrAlertRuleFailedValidation, "metric name for recording rule must be a valid utf8 string")
}
if !prommodels.IsValidMetricName(metricName) {
if !prommodels.IsValidMetricName(metricName) { // nolint:staticcheck
return ngmodels.AlertRule{}, fmt.Errorf("%w: %s", ngmodels.ErrAlertRuleFailedValidation, "metric name for recording rule must be a valid Prometheus metric name")
}
newRule.Record = ModelRecordFromApiRecord(in.GrafanaManagedAlert.Record)