Chore: Use ruleId instead of alertId as log keyword (#18738)

This commit is contained in:
Marcus Efraimsson 2019-08-27 08:40:03 +02:00 committed by Torkel Ödegaard
parent 73d9f262bd
commit e83f55f394

View File

@ -46,7 +46,7 @@ func (handler *defaultResultHandler) handle(evalContext *EvalContext) error {
metrics.MAlertingResultState.WithLabelValues(string(evalContext.Rule.State)).Inc()
if evalContext.shouldUpdateAlertState() {
handler.log.Info("New state change", "alertId", evalContext.Rule.ID, "newState", evalContext.Rule.State, "prev state", evalContext.PrevAlertState)
handler.log.Info("New state change", "ruleId", evalContext.Rule.ID, "newState", evalContext.Rule.State, "prev state", evalContext.PrevAlertState)
cmd := &models.SetAlertStateCommand{
AlertId: evalContext.Rule.ID,