Skip to content

Comments

[7.x] [Alerting] Adds navigation by consumer and alert type to alerting (#58997)#60605

Merged
gmmorris merged 1 commit intoelastic:7.xfrom
gmmorris:backport/7.x/pr-58997
Mar 19, 2020
Merged

[7.x] [Alerting] Adds navigation by consumer and alert type to alerting (#58997)#60605
gmmorris merged 1 commit intoelastic:7.xfrom
gmmorris:backport/7.x/pr-58997

Conversation

@gmmorris
Copy link
Contributor

Backports the following commits to 7.x:

…astic#58997)

Adds Navigation APIs to Alerting.

Parts to this PR:

Adds a client side (Public) plugin to Alerting, including two APIs: registerNavigation & registerDefaultNavigation. These allow a plugin to register navigation handlers for any alerts which it is the consumer of- one for specific AlertTypes and one for a default handler for all AlertTypes created by the plugin.
The Alert Details page now uses these navigation handlers for the View In App button. If there's an AlertType specific handler it uses that, otherwise it uses a default one and if the consumer has not registered a handler - it remains disabled.
A generic Alerting Example plugin that demonstrates usage of these APIs including two AlertTypes - one that always fires, and another that checks how many people are in Outer Space and allows you to trigger based on that. 😉 To enable the plugin run yarn start --ssl --run-examples
@gmmorris gmmorris added the backport This PR is a backport of another PR label Mar 19, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@gmmorris gmmorris merged commit 0838402 into elastic:7.x Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants