2016-09-08 04:25:45 -05:00
|
|
|
package dtos
|
|
|
|
|
|
|
|
import "github.com/grafana/grafana/pkg/components/simplejson"
|
|
|
|
|
2017-04-10 12:22:58 -05:00
|
|
|
type PostAnnotationsCmd struct {
|
2017-10-07 03:31:39 -05: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 09:26:34 -05:00
|
|
|
|
2017-10-07 03:31:39 -05: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-10 12:22:58 -05:00
|
|
|
}
|
|
|
|
|
2016-10-14 02:33:16 -05:00
|
|
|
type DeleteAnnotationsCmd struct {
|
2017-10-07 03:31:39 -05:00
|
|
|
AlertId int64 `json:"alertId"`
|
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
AnnotationId int64 `json:"annotationId"`
|
|
|
|
RegionId int64 `json:"regionId"`
|
2016-10-14 02:33:16 -05:00
|
|
|
}
|
2017-10-12 03:12:15 -05:00
|
|
|
|
|
|
|
type PostGraphiteAnnotationsCmd struct {
|
|
|
|
When int64 `json:"when"`
|
|
|
|
What string `json:"what"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
Tags interface{} `json:"tags"`
|
|
|
|
}
|