use alert state changes counter as secondary version

This commit is contained in:
bergquist
2018-10-01 15:58:30 +02:00
parent 1be8fb76b8
commit 75f832cda8
9 changed files with 54 additions and 9 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ type Alert struct {
EvalData *simplejson.Json
NewStateDate time.Time
StateChanges int
StateChanges int64
Created time.Time
Updated time.Time
@@ -156,7 +156,7 @@ type SetAlertStateCommand struct {
Error string
EvalData *simplejson.Json
Timestamp time.Time
Result Alert
}
//Queries
+2 -1
View File
@@ -97,7 +97,8 @@ type AlertNotificationState struct {
}
type SetAlertNotificationStateToPendingCommand struct {
State *AlertNotificationState
AlertRuleStateUpdatedVersion int64
State *AlertNotificationState
}
type SetAlertNotificationStateToCompleteCommand struct {