forked from elastic/kibana
-
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.
[Custom threshold] Add missing prefill fields to the custom threshold…
… rule (elastic#174690) Fixes elastic#174824 ## Summary This PR adds prefill functionality for `time size`, `time unit`, and `alertOnGroupDisappear` in the custom threshold. It also fixes the filter query by changing the structure to match how we save information in the rule saved object, like this: ``` searchConfiguration: { index: 'metrics-*', query: { query: 'host.name: host-1', language: 'kuery', }, }, ``` This will be more compatible with future changes in case we want to support query filters other than `kuery`. --------- Co-authored-by: Faisal Kanout <[email protected]>
- Loading branch information
1 parent
0c12cb2
commit b235b68
Showing
2 changed files
with
41 additions
and
29 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