2016-06-06 10:31:21 +02:00
|
|
|
package alerting
|
|
|
|
|
|
2016-07-27 16:29:28 +02:00
|
|
|
type Job struct {
|
2016-09-05 14:26:08 +02:00
|
|
|
Offset int64
|
|
|
|
|
OffsetWait bool
|
|
|
|
|
Delay bool
|
|
|
|
|
Running bool
|
|
|
|
|
Rule *Rule
|
2016-06-13 14:01:57 +02:00
|
|
|
}
|
|
|
|
|
|
2016-07-27 16:29:28 +02:00
|
|
|
type ResultLogEntry struct {
|
2016-07-21 13:09:12 +02:00
|
|
|
Message string
|
|
|
|
|
Data interface{}
|
|
|
|
|
}
|
|
|
|
|
|
2016-08-15 15:12:43 +02:00
|
|
|
type EvalMatch struct {
|
2016-07-14 13:32:16 +02:00
|
|
|
Value float64
|
|
|
|
|
Metric string
|
|
|
|
|
Tags map[string]string
|
2016-06-06 10:31:21 +02:00
|
|
|
}
|
|
|
|
|
|
2016-06-09 22:21:28 +02:00
|
|
|
type Level struct {
|
|
|
|
|
Operator string
|
2016-06-15 11:39:25 +02:00
|
|
|
Value float64
|
2016-06-09 22:21:28 +02:00
|
|
|
}
|