mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
6335509a23
* SQLite migrations * cleanup * migrate end times * switch to update with a query * real migration * anno migrations * remove old docs * set isRegion from time changes * use <> for is not * add comment and fix index decleration * single validation place * add test * fix test * add upgrading docs * use AnnotationEvent * fix import * remove regionId from typescript
44 lines
1.2 KiB
Go
44 lines
1.2 KiB
Go
package dtos
|
|
|
|
import "github.com/grafana/grafana/pkg/components/simplejson"
|
|
|
|
type PostAnnotationsCmd struct {
|
|
DashboardId int64 `json:"dashboardId"`
|
|
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"`
|
|
}
|
|
|
|
type UpdateAnnotationsCmd struct {
|
|
Id int64 `json:"id"`
|
|
Time int64 `json:"time"`
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
Text string `json:"text"`
|
|
Tags []string `json:"tags"`
|
|
}
|
|
|
|
type PatchAnnotationsCmd struct {
|
|
Id int64 `json:"id"`
|
|
Time int64 `json:"time"`
|
|
TimeEnd int64 `json:"timeEnd,omitempty"` // Optional
|
|
Text string `json:"text"`
|
|
Tags []string `json:"tags"`
|
|
}
|
|
|
|
type DeleteAnnotationsCmd struct {
|
|
AlertId int64 `json:"alertId"`
|
|
DashboardId int64 `json:"dashboardId"`
|
|
PanelId int64 `json:"panelId"`
|
|
AnnotationId int64 `json:"annotationId"`
|
|
}
|
|
|
|
type PostGraphiteAnnotationsCmd struct {
|
|
When int64 `json:"when"`
|
|
What string `json:"what"`
|
|
Data string `json:"data"`
|
|
Tags interface{} `json:"tags"`
|
|
}
|