From 5072fefc22f43fd5c2f667a594a07d005096e5e4 Mon Sep 17 00:00:00 2001 From: David Parrott Date: Tue, 4 May 2021 09:24:20 -0700 Subject: [PATCH] allow saving pending alerts (#33667) --- pkg/services/ngalert/models/instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/ngalert/models/instance.go b/pkg/services/ngalert/models/instance.go index 8f0c26affee..dd14f8a2bb4 100644 --- a/pkg/services/ngalert/models/instance.go +++ b/pkg/services/ngalert/models/instance.go @@ -39,6 +39,7 @@ func (i InstanceStateType) IsValid() bool { return i == InstanceStateFiring || i == InstanceStateNormal || i == InstanceStateNoData || + i == InstanceStatePending || i == InstanceStateError }