models.go 402 B

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