annotations.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. }
  28. type PostGraphiteAnnotationsCmd struct {
  29. When int64 `json:"when"`
  30. What string `json:"what"`
  31. Data string `json:"data"`
  32. Tags interface{} `json:"tags"`
  33. }