models.go 477 B

12345678910111213141516171819202122232425262728293031
  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 Level struct {
  18. Operator string
  19. Level float64
  20. }
  21. type AlertQuery struct {
  22. Query string
  23. DatasourceId int64
  24. Aggregator string
  25. From string
  26. To string
  27. }