Alerting: Ensure we update State.LastSentAt before persisting (#89427)

This commit is contained in:
Matthew Jacobson
2024-06-25 13:01:26 -04:00
committed by GitHub
parent 0f01db4025
commit 47c9259d75
16 changed files with 237 additions and 75 deletions
+3
View File
@@ -100,3 +100,6 @@ type NoopImageService struct{}
func (s *NoopImageService) NewImage(_ context.Context, _ *models.AlertRule) (*models.Image, error) {
return &models.Image{}, nil
}
// NoopSender is a no-op sender. Used when you want state manager to update LastSentAt without sending any alerts.
var NoopSender = func(_ context.Context, _ StateTransitions) {}