Open
Description
openedon Sep 13, 2023
Related to: #137428
Summary
In the _rule_management_filters
endpoint, we fetch aggregated information needed for filters on the Rule Management page.
In order to fetch how many prebuilt and custom rules we have, we run two search requests in parallel:
We could do it using a single aggregation request similar to how it is done for fetching aggregated tags in the same endpoint:
We could go further and combine aggs for fetching aggregated tags and the number of rules into a single call to rulesClient.aggregate()
, optimizing this endpoint to making only one call to Elasticsearch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment