Merge branch 'alerting' into alerting_notifications

This commit is contained in:
bergquist
2016-06-17 08:27:58 +02:00
5 changed files with 10 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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},