tech(alerting): minor refactoring and code style

This commit is contained in:
bergquist
2016-06-03 15:01:42 +02:00
parent 65eb373808
commit 2cf797b567
3 changed files with 28 additions and 42 deletions

View File

@@ -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
}