-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evenly distribute bulk-enabled alerting rules (#174656)
resolves: #171980 This is a follow-on issue of: #172742 Above issue randomises `runAt` of the bulk enabled rules. And creates new tasks (by using `scheduleTask` for each one of them) if they don't have any. But, as we create the tasks already enabled `bulkEnable` method of the TM skips them. This PR replaces scheduleTask with bulkSchedule and creates task as disabled, so `bulkEnable` can pick them up. ## To verify: Add Security Solutions' [prebuilt detection rules](http://localhost:5601/app/security/rules/management?sourcerer=(default:(id:security-solution-default,selectedPatterns:!()))&timeline=(activeTab:query,graphEventId:%27%27,isOpen:!f)) and bulk enable them after installing all.
- Loading branch information
1 parent
bcfdb56
commit e3fed0c
Showing
2 changed files
with
94 additions
and
109 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