models.go 629 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. TriggeredAlerts []*TriggeredAlert
  14. Description string
  15. Error error
  16. AlertJob *AlertJob
  17. }
  18. type TriggeredAlert struct {
  19. ActualValue float64
  20. Name string
  21. State string
  22. }
  23. type Level struct {
  24. Operator string
  25. Level float64
  26. }
  27. type AlertQuery struct {
  28. Query string
  29. DatasourceId int64
  30. Aggregator string
  31. From string
  32. To string
  33. }