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/Metric threshold] [Preview chart] Sort groups by fi…
…rst metric and aggType combination (elastic#199643) Resolves elastic#183491 This PR sorts the data in Preview chart of Custom threshold and Metric threshold rules based on first metric and aggType combination used in the rule equation. For `rate`, `percentile` and `last_value` aggregations, I have used `max` aggregation as those aggregations require additional params to pass to `LensAttributesBuilder` which are not supported currently. Also, sorting based on equation is not supported right now. | Before | After | | --- | --- | | <img width="601" alt="Screenshot 2024-11-11 at 17 07 47" src="https://github.com/user-attachments/assets/0f22991f-fa82-4dcf-8f44-7c88d7f85d8e"> | <img width="596" alt="Screenshot 2024-11-12 at 13 37 06" src="https://github.com/user-attachments/assets/a4a53bac-ecd0-4cc7-9ba5-11c733cc8f88"> | --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
5e6a204
commit ef8e332
Showing
6 changed files
with
288 additions
and
63 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
Oops, something went wrong.