Merge branch 'alerting' into alerting_notifications

This commit is contained in:
bergquist
2016-06-16 16:49:16 +02:00
88 changed files with 2227 additions and 787 deletions
+5
View File
@@ -29,6 +29,7 @@ type Dashboard struct {
Id int64
Slug string
OrgId int64
GnetId int64
Version int
Created time.Time
@@ -77,6 +78,10 @@ func NewDashboardFromJson(data *simplejson.Json) *Dashboard {
dash.Updated = time.Now()
}
if gnetId, err := dash.Data.Get("gnetId").Float64(); err == nil {
dash.GnetId = int64(gnetId)
}
return dash
}