2016-09-08 17:25:45 +08:00
|
|
|
package dtos
|
|
|
|
|
|
|
|
import "github.com/grafana/grafana/pkg/components/simplejson"
|
|
|
|
|
2017-04-11 01:22:58 +08:00
|
|
|
type PostAnnotationsCmd struct {
|
2017-10-07 16:31:39 +08:00
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
Text string `json:"text"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Data *simplejson.Json `json:"data"`
|
|
|
|
IsRegion bool `json:"isRegion"`
|
|
|
|
TimeEnd int64 `json:"timeEnd"`
|
|
|
|
}
|
2017-04-12 22:26:34 +08:00
|
|
|
|
2017-10-07 16:31:39 +08:00
|
|
|
type UpdateAnnotationsCmd struct {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
Text string `json:"text"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
IsRegion bool `json:"isRegion"`
|
|
|
|
TimeEnd int64 `json:"timeEnd"`
|
2017-04-11 01:22:58 +08:00
|
|
|
}
|
|
|
|
|
2016-10-14 15:33:16 +08:00
|
|
|
type DeleteAnnotationsCmd struct {
|
2017-10-07 16:31:39 +08:00
|
|
|
AlertId int64 `json:"alertId"`
|
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
AnnotationId int64 `json:"annotationId"`
|
|
|
|
RegionId int64 `json:"regionId"`
|
2016-10-14 15:33:16 +08:00
|
|
|
}
|