-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Response Ops][Alerting] Remove rules client from alerting task runner (
#194300) ## Summary Initializing the rules client with every rule execution causes 2 requests to Elasticsearch, a `POST /_security/user/_has_privileges` request and a `GET/.kibana_<version>/_doc/space:<spaceId>` request. We only use the rules client to proxy two methods `getAlertFromRaw` and `clearExpiredSnoozes`. Both of these methods can be converted into library functions that can be used without the rules client. This PR makes that conversion. --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
f3f53e0
commit 326f813
Showing
22 changed files
with
511 additions
and
493 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
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
48 changes: 0 additions & 48 deletions
48
x-pack/plugins/alerting/server/rules_client/methods/clear_expired_snoozes.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.