models.go 459 B

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