alerting.go 916 B

12345678910111213141516171819202122232425262728293031
  1. package dtos
  2. import "time"
  3. type AlertRuleDTO struct {
  4. Id int64 `json:"id"`
  5. DashboardId int64 `json:"dashboardId"`
  6. PanelId int64 `json:"panelId"`
  7. Query string `json:"query"`
  8. QueryRefId string `json:"queryRefId"`
  9. WarnLevel float64 `json:"warnLevel"`
  10. CritLevel float64 `json:"critLevel"`
  11. WarnOperator string `json:"warnOperator"`
  12. CritOperator string `json:"critOperator"`
  13. Frequency int64 `json:"frequency"`
  14. Name string `json:"name"`
  15. Description string `json:"description"`
  16. QueryRange int `json:"queryRange"`
  17. Aggregator string `json:"aggregator"`
  18. State string `json:"state"`
  19. DashbboardUri string `json:"dashboardUri"`
  20. }
  21. type AlertNotificationDTO struct {
  22. Id int64 `json:"id"`
  23. Name string `json:"name"`
  24. Type string `json:"type"`
  25. Created time.Time `json:"created"`
  26. Updated time.Time `json:"updated"`
  27. }