2016-09-08 11:25:45 +02:00
|
|
|
package dtos
|
|
|
|
|
|
|
|
|
|
import "github.com/grafana/grafana/pkg/components/simplejson"
|
|
|
|
|
|
2017-04-10 20:22:58 +03:00
|
|
|
type PostAnnotationsCmd struct {
|
2022-05-02 11:35:36 +02:00
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
|
DashboardUID string `json:"dashboardUID,omitempty"`
|
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
|
Data *simplejson.Json `json:"data"`
|
2017-10-07 10:31:39 +02:00
|
|
|
}
|
2017-04-12 16:26:34 +02:00
|
|
|
|
2017-10-07 10:31:39 +02:00
|
|
|
type UpdateAnnotationsCmd struct {
|
2019-08-16 01:49:30 -07:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
Tags []string `json:"tags"`
|
2017-04-10 20:22:58 +03:00
|
|
|
}
|
|
|
|
|
|
2019-01-27 21:49:22 +10:00
|
|
|
type PatchAnnotationsCmd struct {
|
2019-02-06 06:41:39 +10:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
|
Time int64 `json:"time"`
|
2019-08-16 01:49:30 -07:00
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
2019-02-06 06:41:39 +10:00
|
|
|
Text string `json:"text"`
|
|
|
|
|
Tags []string `json:"tags"`
|
2019-01-27 21:49:22 +10:00
|
|
|
}
|
|
|
|
|
|
2022-03-23 18:39:00 -03:00
|
|
|
type MassDeleteAnnotationsCmd struct {
|
2022-05-02 11:35:36 +02:00
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
|
AnnotationId int64 `json:"annotationId"`
|
|
|
|
|
DashboardUID string `json:"dashboardUID,omitempty"`
|
2016-10-14 09:33:16 +02:00
|
|
|
}
|
2017-10-12 11:12:15 +03:00
|
|
|
|
|
|
|
|
type PostGraphiteAnnotationsCmd struct {
|
|
|
|
|
When int64 `json:"when"`
|
|
|
|
|
What string `json:"what"`
|
|
|
|
|
Data string `json:"data"`
|
|
|
|
|
Tags interface{} `json:"tags"`
|
|
|
|
|
}
|