2016-06-06 03:31:21 -05:00
|
|
|
package alerting
|
|
|
|
|
2017-01-13 05:32:30 -06:00
|
|
|
import "github.com/grafana/grafana/pkg/components/null"
|
|
|
|
|
2016-07-27 09:29:28 -05:00
|
|
|
type Job struct {
|
2016-09-05 07:26:08 -05:00
|
|
|
Offset int64
|
|
|
|
OffsetWait bool
|
|
|
|
Delay bool
|
|
|
|
Running bool
|
|
|
|
Rule *Rule
|
2016-06-13 07:01:57 -05:00
|
|
|
}
|
|
|
|
|
2016-07-27 09:29:28 -05:00
|
|
|
type ResultLogEntry struct {
|
2016-07-21 06:09:12 -05:00
|
|
|
Message string
|
|
|
|
Data interface{}
|
|
|
|
}
|
|
|
|
|
2016-08-15 08:12:43 -05:00
|
|
|
type EvalMatch struct {
|
2017-01-13 05:32:30 -06:00
|
|
|
Value null.Float `json:"value"`
|
2016-11-08 07:53:13 -06:00
|
|
|
Metric string `json:"metric"`
|
|
|
|
Tags map[string]string `json:"tags"`
|
2016-06-06 03:31:21 -05:00
|
|
|
}
|
|
|
|
|
2016-06-09 15:21:28 -05:00
|
|
|
type Level struct {
|
|
|
|
Operator string
|
2016-06-15 04:39:25 -05:00
|
|
|
Value float64
|
2016-06-09 15:21:28 -05:00
|
|
|
}
|