Files
grafana/pkg/services/alerting/models.go
T
bergquist 6cb4bdd6cb feat(alerting): adds a result list to alertresult
Since one query can return multiple series we might be
interested in getting the result for each serie
2016-06-13 11:44:47 +02:00

39 lines
629 B
Go

package alerting
type AlertJob struct {
Offset int64
Delay bool
Running bool
RetryCount int
Rule *AlertRule
}
type AlertResult struct {
State string
ActualValue float64
Duration float64
TriggeredAlerts []*TriggeredAlert
Description string
Error error
AlertJob *AlertJob
}
type TriggeredAlert struct {
ActualValue float64
Name string
State string
}
type Level struct {
Operator string
Level float64
}
type AlertQuery struct {
Query string
DatasourceId int64
Aggregator string
From string
To string
}