feat(alerting): update state if not been updated for 15min

This commit is contained in:
bergquist
2016-06-23 11:03:27 +02:00
parent 925806df87
commit 488b42377b
4 changed files with 51 additions and 13 deletions
+8
View File
@@ -28,6 +28,7 @@ func (this *UpdateAlertStateCommand) IsValidState() bool {
type UpdateAlertStateCommand struct {
AlertId int64 `json:"alertId" binding:"Required"`
OrgId int64 `json:"orgId" binding:"Required"`
NewState string `json:"newState" binding:"Required"`
Info string `json:"info"`
@@ -42,3 +43,10 @@ type GetAlertsStateQuery struct {
Result *[]AlertState
}
type GetLastAlertStateQuery struct {
AlertId int64
OrgId int64
Result *AlertState
}