Skip to content

Commit

Permalink
Add observability consumer to view in app registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary committed Nov 30, 2023
1 parent a826a7b commit 040d0de
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,12 @@ function registerNavigation(alerting: AlertingSetup) {
return;
}
);
alerting.registerNavigation(
'observability',
ES_QUERY_ID,
(rule: SanitizedRule<EsQueryRuleParams<SearchType.searchSource>>) => {
if (isSearchSourceRule(rule.params)) return `/app/discover#/viewAlert/${rule.id}`;
return;
}
);
}

0 comments on commit 040d0de

Please sign in to comment.