-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Alerting] Configurable number of hits for ES query alert #90089
[Alerting] Configurable number of hits for ES query alert #90089
Conversation
…ing/search-alert-configurable-hits
…ing/search-alert-configurable-hits
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
}) | ||
); | ||
} | ||
if ((size && size < 0) || size > 10000) { |
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.
I tried putting the ES_QUERY_MAX_HITS_PER_EXECUTION
const into common
and using it inside this validation function but I got an optimizer error related to joi.
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.
I think this is caused by a config.ts
file that shouldn't be in common
(https://github.com/elastic/kibana/blob/master/x-pack/plugins/stack_alerts/common/config.ts). If that file gets moved to the server-side, it could work.
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.
Documentation and UI copy 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
…ing/search-alert-configurable-hits
@elasticmachine merge upstream |
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.
Changes LGTM! 👍
}) | ||
); | ||
} | ||
if ((size && size < 0) || size > 10000) { |
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.
I think this is caused by a config.ts
file that shouldn't be in common
(https://github.com/elastic/kibana/blob/master/x-pack/plugins/stack_alerts/common/config.ts). If that file gets moved to the server-side, it could work.
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
) * Adding size parameter to ES query alert * Can't use const inside validation * Updating docs * Fixing functional test * License Co-authored-by: Kibana Machine <[email protected]>
…90830) * Adding size parameter to ES query alert * Can't use const inside validation * Updating docs * Fixing functional test * License Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Resolves #89561
Summary
Added
size
as a parameter of the ES query alert, with a default of 100Checklist
Delete any items that are not applicable to this PR.