Commit 2fb78a50 by bergquist

minor fixes based on code review

parent aa1b80fe
......@@ -70,11 +70,11 @@ func (c *EvalContext) GetStateModel() *StateDescription {
}
case m.AlertStateUnknown:
return &StateDescription{
Color: "888888",
Color: "#888888",
Text: "Unknown",
}
default:
panic("Unknown rule state for alert notifications " + c.Rule.State)
panic("Unknown rule state for alert " + c.Rule.State)
}
}
......
......@@ -193,7 +193,7 @@ func updateAlerts(existingAlerts []*m.Alert, cmd *m.SaveAlertsCommand, sess *DBS
if alertToUpdate.ContainsUpdates(alert) {
alert.Updated = timeNow()
alert.State = alertToUpdate.State
sess.MustCols("message", "debounce_duration")
sess.MustCols("message", "for")
_, err := sess.ID(alert.Id).Update(alert)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment