Skip to content

Commit

Permalink
fixed due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Oct 14, 2021
2 parents e3390a0 + f04e68c commit d5d6d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/alerting/server/rules_client/rules_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ export class RulesClient {
for (const instanceId of recoveredAlertInstanceIds) {
const { group: actionGroup, subgroup: actionSubgroup } =
recoveredAlertInstances[instanceId].getLastScheduledActions() ?? {};
const inststate = recoveredAlertInstances[instanceId].getState();
const instanceState = recoveredAlertInstances[instanceId].getState();
const message = `instance '${instanceId}' has recovered`;

const event = createAlertEventLogRecordObject({
Expand All @@ -1236,7 +1236,7 @@ export class RulesClient {
instanceId,
action: EVENT_LOG_ACTIONS.recoveredInstance,
message,
state: inststate,
state: instanceState,
group: actionGroup,
subgroup: actionSubgroup,
namespace: this.namespace,
Expand Down

0 comments on commit d5d6d02

Please sign in to comment.