models.go 318 B

12345678910111213141516171819202122232425
  1. package alerting
  2. type Job struct {
  3. Offset int64
  4. Delay bool
  5. Running bool
  6. Rule *Rule
  7. }
  8. type ResultLogEntry struct {
  9. Message string
  10. Data interface{}
  11. }
  12. type Event struct {
  13. Value float64
  14. Metric string
  15. State string
  16. Tags map[string]string
  17. }
  18. type Level struct {
  19. Operator string
  20. Value float64
  21. }