annotations.go 955 B

12345678910111213141516171819202122232425262728293031
  1. package dtos
  2. import "github.com/grafana/grafana/pkg/components/simplejson"
  3. type PostAnnotationsCmd struct {
  4. DashboardId int64 `json:"dashboardId"`
  5. PanelId int64 `json:"panelId"`
  6. Time int64 `json:"time"`
  7. Text string `json:"text"`
  8. Tags []string `json:"tags"`
  9. Data *simplejson.Json `json:"data"`
  10. IsRegion bool `json:"isRegion"`
  11. TimeEnd int64 `json:"timeEnd"`
  12. }
  13. type UpdateAnnotationsCmd struct {
  14. Id int64 `json:"id"`
  15. Time int64 `json:"time"`
  16. Text string `json:"text"`
  17. Tags []string `json:"tags"`
  18. IsRegion bool `json:"isRegion"`
  19. TimeEnd int64 `json:"timeEnd"`
  20. }
  21. type DeleteAnnotationsCmd struct {
  22. AlertId int64 `json:"alertId"`
  23. DashboardId int64 `json:"dashboardId"`
  24. PanelId int64 `json:"panelId"`
  25. AnnotationId int64 `json:"annotationId"`
  26. RegionId int64 `json:"regionId"`
  27. }