grafana/pkg/services/alerting/models.go

28 lines
459 B
Go
Raw Normal View History

package alerting
import "github.com/grafana/grafana/pkg/components/null"
2016-07-27 09:29:28 -05:00
type Job struct {
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 {
Message string
Data interface{}
}
2016-08-15 08:12:43 -05:00
type EvalMatch struct {
Value null.Float `json:"value"`
2016-11-08 07:53:13 -06:00
Metric string `json:"metric"`
Tags map[string]string `json:"tags"`
}
type Level struct {
Operator string
Value float64
}