Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,8 @@ export function registerErrorCountRuleType({
const alertUuid = recoveredAlert.alert.getUuid();
const alertDetailsUrl = getAlertDetailsUrl(basePath, spaceId, alertUuid);

const ruleParamsOfRecoveredAlert = alertHits?.[
ALERT_RULE_PARAMETERS
] as ErrorCountRuleTypeParams;
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert.groupBy ?? [];
const ruleParamsOfRecoveredAlert = alertHits?.[ALERT_RULE_PARAMETERS];
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert?.groupBy ?? [];
const allGroupByFieldsOfRecoveredAlert = getAllGroupByFields(
ApmRuleType.ErrorCount,
groupByFieldsOfRecoveredAlert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,8 @@ export function registerTransactionDurationRuleType({
const alertUuid = recoveredAlert.alert.getUuid();
const alertDetailsUrl = getAlertDetailsUrl(basePath, spaceId, alertUuid);

const ruleParamsOfRecoveredAlert = alertHits?.[
ALERT_RULE_PARAMETERS
] as TransactionDurationRuleTypeParams;
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert.groupBy ?? [];
const ruleParamsOfRecoveredAlert = alertHits?.[ALERT_RULE_PARAMETERS];
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert?.groupBy ?? [];
const allGroupByFieldsOfRecoveredAlert = getAllGroupByFields(
ApmRuleType.TransactionDuration,
groupByFieldsOfRecoveredAlert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,8 @@ export function registerTransactionErrorRateRuleType({
const alertUuid = recoveredAlert.alert.getUuid();
const alertDetailsUrl = getAlertDetailsUrl(basePath, spaceId, alertUuid);

const ruleParamsOfRecoveredAlert = alertHits?.[
ALERT_RULE_PARAMETERS
] as TransactionErrorRateRuleTypeParams;
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert.groupBy ?? [];
const ruleParamsOfRecoveredAlert = alertHits?.[ALERT_RULE_PARAMETERS];
const groupByFieldsOfRecoveredAlert = ruleParamsOfRecoveredAlert?.groupBy ?? [];
const allGroupByFieldsOfRecoveredAlert = getAllGroupByFields(
ApmRuleType.TransactionErrorRate,
groupByFieldsOfRecoveredAlert
Expand Down