Alerting: Fix saving result_fingerprint in async alert state persister (#115005)

This commit is contained in:
Alexander Akhmetov
2025-12-16 18:09:32 +01:00
committed by GitHub
parent f64daba9dd
commit 81710ca1f5
3 changed files with 32 additions and 17 deletions
+6
View File
@@ -973,6 +973,12 @@ func (a AlertInstanceMutators) WithAnnotations(annotations InstanceAnnotations)
}
}
func (a AlertInstanceMutators) WithResultFingerprint(fp string) AlertInstanceMutator {
return func(i *AlertInstance) {
i.ResultFingerprint = fp
}
}
type Mutator[T any] func(*T)
// CopyNotificationSettings creates a deep copy of NotificationSettings.