mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'alerting' into alerting_notifications
This commit is contained in:
@@ -22,6 +22,7 @@ func TestAlertingDataAccess(t *testing.T) {
|
||||
Name: "Alerting title",
|
||||
Description: "Alerting description",
|
||||
Settings: simplejson.New(),
|
||||
Frequency: 1,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -52,6 +53,7 @@ func TestAlertingDataAccess(t *testing.T) {
|
||||
So(alert.Name, ShouldEqual, "Alerting title")
|
||||
So(alert.Description, ShouldEqual, "Alerting description")
|
||||
So(alert.State, ShouldEqual, "OK")
|
||||
So(alert.Frequency, ShouldEqual, 1)
|
||||
})
|
||||
|
||||
Convey("Alerts with same dashboard id and panel id should update", func() {
|
||||
|
||||
@@ -17,6 +17,7 @@ func addAlertMigrations(mg *Migrator) {
|
||||
{Name: "description", Type: DB_NVarchar, Length: 255, Nullable: false},
|
||||
{Name: "state", Type: DB_NVarchar, Length: 255, Nullable: false},
|
||||
{Name: "settings", Type: DB_Text, Nullable: false},
|
||||
{Name: "frequency", Type: DB_BigInt, Nullable: false},
|
||||
{Name: "handler", Type: DB_BigInt, Nullable: false},
|
||||
{Name: "enabled", Type: DB_Bool, Nullable: false},
|
||||
{Name: "created", Type: DB_DateTime, Nullable: false},
|
||||
|
||||
Reference in New Issue
Block a user