mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(alerting): minor refactoring and code style
This commit is contained in:
@@ -110,11 +110,11 @@ type GetAlertChangesQuery struct {
|
||||
}
|
||||
|
||||
type AlertJob struct {
|
||||
Offset int64
|
||||
Delay bool
|
||||
Running bool
|
||||
Retry int
|
||||
Rule AlertRule
|
||||
Offset int64
|
||||
Delay bool
|
||||
Running bool
|
||||
RetryCount int
|
||||
Rule AlertRule
|
||||
}
|
||||
|
||||
type AlertResult struct {
|
||||
@@ -125,3 +125,7 @@ type AlertResult struct {
|
||||
Description string
|
||||
AlertJob *AlertJob
|
||||
}
|
||||
|
||||
func (ar *AlertResult) IsResultIncomplete() bool {
|
||||
return ar.State == AlertStatePending
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user