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 {
|
2022-08-03 03:01:25 -05:00
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
DashboardUID string `json:"dashboardUID,omitempty"`
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
|
|
// required: true
|
|
|
|
Text string `json:"text"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Data *simplejson.Json `json:"data"`
|
2017-10-07 03:31:39 -05:00
|
|
|
}
|
2017-04-12 09:26:34 -05:00
|
|
|
|
2017-10-07 03:31:39 -05:00
|
|
|
type UpdateAnnotationsCmd struct {
|
2022-12-26 08:53:52 -06:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
|
|
Text string `json:"text"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Data *simplejson.Json `json:"data"`
|
2017-04-10 12:22:58 -05:00
|
|
|
}
|
|
|
|
|
2019-01-27 05:49:22 -06:00
|
|
|
type PatchAnnotationsCmd struct {
|
2022-12-26 08:53:52 -06:00
|
|
|
Id int64 `json:"id"`
|
|
|
|
Time int64 `json:"time"`
|
|
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
|
|
Text string `json:"text"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Data *simplejson.Json `json:"data"`
|
2019-01-27 05:49:22 -06:00
|
|
|
}
|
|
|
|
|
2022-03-23 16:39:00 -05:00
|
|
|
type MassDeleteAnnotationsCmd struct {
|
2022-05-02 04:35:36 -05:00
|
|
|
DashboardId int64 `json:"dashboardId"`
|
|
|
|
PanelId int64 `json:"panelId"`
|
|
|
|
AnnotationId int64 `json:"annotationId"`
|
|
|
|
DashboardUID string `json:"dashboardUID,omitempty"`
|
2016-10-14 02:33:16 -05:00
|
|
|
}
|
2017-10-12 03:12:15 -05:00
|
|
|
|
|
|
|
type PostGraphiteAnnotationsCmd struct {
|
2023-08-30 10:46:47 -05:00
|
|
|
When int64 `json:"when"`
|
|
|
|
What string `json:"what"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
Tags any `json:"tags"`
|
2017-10-12 03:12:15 -05:00
|
|
|
}
|