models.go 664 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package alerting
  2. type AlertJob struct {
  3. Offset int64
  4. Delay bool
  5. Running bool
  6. RetryCount int
  7. Rule *AlertRule
  8. }
  9. type AlertResult struct {
  10. State string
  11. ActualValue float64
  12. Duration float64
  13. Description string
  14. Error error
  15. AlertJob *AlertJob
  16. }
  17. type AlertRule struct {
  18. Id int64
  19. OrgId int64
  20. DatasourceId int64
  21. DashboardId int64
  22. PanelId int64
  23. Query string
  24. QueryRefId string
  25. WarnLevel float64
  26. CritLevel float64
  27. WarnOperator string
  28. CritOperator string
  29. Frequency int64
  30. Name string
  31. Description string
  32. QueryRange int
  33. Aggregator string
  34. State string
  35. }