New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Response Ops] Adds recovery context for ES query rule type #132839
Conversation
…g/es-recovery-context
…g/es-recovery-context
...est/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/es_query/rule.ts
Show resolved
Hide resolved
...est/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/es_query/rule.ts
Show resolved
Hide resolved
@elasticmachine merge upstream |
@elasticmachine merge upstream |
const conditionMet = compareFn(numMatches, params.threshold); | ||
|
||
const base = publicBaseUrl; | ||
const spacePrefix = spaceId !== 'default' ? `/s/${spaceId}` : ''; | ||
const link = esQueryRule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinging @elastic/response-ops (Team:ResponseOps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally from stack management and from discover. Saw the variables display in the UI and populate in the action. LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; worked as expected
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @ymao1 |
…132839) * Renaming alert to rule for es query rule type * adding recovery context * Updating unit tests * Fixing i18n * Adding functional test * Adding functional test * Fixing functional test * Adding space id to link Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Resolves #126626
Summary
Adds recovery context for ES query rule type. Also renamed
alert
torule
for the ES query rule type files so that is responsible for a lot of the changes in this PR.To Verify
Run when
is recovered and ensure that those context variables are populated when the recovery action runsChecklist