/
githubmirror
/
grafana
Обзор
Документация
Войти
/
githubmirror
/
grafana
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/api/dtos/annotations.go
40 строк
1 KB
Jessica Liu
MT annotations: extract reusable functions for POST /graphite (#127092)
26 июн 2026, 16:34
Не верифицирован
26 июн 2026, 16:34
93ff74b
Код
Авторство
О чём код?
package dtos import "github.com/grafana/grafana/pkg/components/simplejson" type PostAnnotationsCmd struct { 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"` } 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"` Data *simplejson.Json `json:"data"` } 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"` Data *simplejson.Json `json:"data"` } type MassDeleteAnnotationsCmd struct { DashboardId int64 `json:"dashboardId"` PanelId int64 `json:"panelId"` AnnotationId int64 `json:"annotationId"` DashboardUID string `json:"dashboardUID,omitempty"` }