-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Custom threshold] How to handle percentage field for multiple aggregations #171121
Comments
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
@maciejforcone Would you please help with the above two questions in this ticket? |
I think it makes sense not to change the default, and user modified values, whenever user changes the condition type. Also we can think of "1" as a default threshold value, so it's "100%" for percentage only metrics. |
@benakansara I found a way to fix the first issue based on Maciej's input 🎉 Screen.Recording.2023-11-23.at.11.59.35.mov |
…lastic#171857) Partially implements elastic#171121 ## Summary This PR fixes the threshold change when the field unit is percent (pct). https://github.com/elastic/kibana/assets/12370520/816158b9-eb5c-4dd0-ab72-0c3d485150b1
After consultations with @maryam-saeidi, we decided to go with defaulting the unit, but only when all aggregations have the same unit, otherwise we use a number (and in additional ticket, we will add user control for selecting the unit they want). So for example if all aggregations are % based, we add % as a unit, in the threshold field. |
Closes #171121 ## Summary Now, for multiple aggregations, the unit will be changed to percent if all metrics are percent. https://github.com/elastic/kibana/assets/12370520/37cc6bd0-b75d-4dba-8529-b40f9fb41ba2
@maryam-saeidi I think using a different unit for percentage metrics is confusing for user and we need to handle different scenarios when switching between percentage and non-percentage metrics. Also, how do we handle a scenario when all metrics in a condition are percentage.
Switching from
average
tocount
Screen.Recording.2023-11-13.at.22.44.22.mov
Using both percentage metrics in a condition
Screen.Recording.2023-11-13.at.22.50.33.mov
Originally posted by @benakansara in #170306 (comment)
Questions
One idea: not having a default value or changing the default value when the field changes (but we need to consider the case that the user already changed the threshold).
The text was updated successfully, but these errors were encountered: