feat(alerting): update state if not been updated for 15min
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user