models.go 307 B

123456789101112131415161718192021222324
  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 EvalMatch struct {
  13. Value float64
  14. Metric string
  15. Tags map[string]string
  16. }
  17. type Level struct {
  18. Operator string
  19. Value float64
  20. }