annotations.go 623 B

1234567891011121314151617181920212223
  1. package dtos
  2. import "github.com/grafana/grafana/pkg/components/simplejson"
  3. type Annotation struct {
  4. AlertId int64 `json:"alertId"`
  5. DashboardId int64 `json:"dashboardId"`
  6. PanelId int64 `json:"panelId"`
  7. NewState string `json:"newState"`
  8. PrevState string `json:"prevState"`
  9. Time int64 `json:"time"`
  10. Title string `json:"title"`
  11. Text string `json:"text"`
  12. Metric string `json:"metric"`
  13. Data *simplejson.Json `json:"data"`
  14. }
  15. type DeleteAnnotationsCmd struct {
  16. AlertId int64 `json:"alertId"`
  17. DashboardId int64 `json:"dashboardId"`
  18. PanelId int64 `json:"panelId"`
  19. }