mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Alerting: Generate random id when testing notification channel (#31844)
This commit is contained in:
parent
04e9f6c24f
commit
7764739a8e
@ -3,6 +3,7 @@ package alerting
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
|
||||
"github.com/grafana/grafana/pkg/components/securejsondata"
|
||||
@ -82,6 +83,7 @@ func createTestEvalContext(cmd *NotificationTestCommand) *EvalContext {
|
||||
Name: "Test notification",
|
||||
Message: "Someone is testing the alert notification within Grafana.",
|
||||
State: models.AlertStateAlerting,
|
||||
ID: rand.Int63(),
|
||||
}
|
||||
|
||||
ctx := NewEvalContext(context.Background(), testRule, fakeRequestValidator{})
|
||||
|
Loading…
Reference in New Issue
Block a user