forked from elastic/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[carbon_black_cloud] Fix alert_v7 CEL pagination logic (elastic#11259)
When using the CEL input for the `alert_v7` data stream, data would load very slowly for two reason: - The page size defaulted to 20 results. - The `want_more` flag was incorrectly set to false. The response body has the fields `num_found` and `num_available`. The `num_found` field gives the total number of results matching the query. The `num_available` filed is equal to `min(num_found, 10000)`. Now `want_more` is true if `num_found` is less than the page size, so it will keep fetching more until less than a full page of results are found. The page size is increased from 20 (the default) to 100.
- Loading branch information
1 parent
b6dfb6b
commit de85109
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters