alert: alerting annotation improvements, fixes #8421

This commit is contained in:
Torkel Ödegaard
2017-05-22 13:02:49 +02:00
parent 370db82238
commit a0b9dcad4d
11 changed files with 115 additions and 78 deletions
+1
View File
@@ -41,6 +41,7 @@ func GetAnnotations(c *middleware.Context) Response {
Title: item.Title,
PanelId: item.PanelId,
RegionId: item.RegionId,
Type: string(item.Type),
})
}
+1
View File
@@ -13,6 +13,7 @@ type Annotation struct {
Text string `json:"text"`
Metric string `json:"metric"`
RegionId int64 `json:"regionId"`
Type string `json:"type"`
Data *simplejson.Json `json:"data"`
}