-
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] Add prefill functionality for the custom threshold rule #170295
Comments
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
Part of #159340 Closes #169364 ## Summary This PR: 1. Removes preFill logic In this PR, I removed the logic about prefilling custom threshold rule params as it was originally for other rule types (not custom equation) and to be used in the Metric threshold rule and the code related to this logic was super confusing, and I wasn't even sure if it works as expected since we haven't used this logic anywhere. I created a [ticket](#170295) to bring back this feature properly later, specifically for the custom equation, and integrate it in one of the apps, such as Infra. We also need to be able to preFill data view information (both adHoc and persisted data view) 2. Renames types and file names - From `metricThreshold` to `customThreshold` - From `metricExplorer` to `expression` 3. Removes unused types 4. Remove logic related to aggregations other than the custom equation at the top level Also, the fields that end with `pct` now have the `%` after the related value: (The reason message was fixed in another PR) <img src="https://github.com/elastic/kibana/assets/12370520/83694d3b-2ee2-4e95-afe9-5a959c76c3c7" width=400 /> ## 🧪 How to test - Nothing has changed related to functionality, so please make sure the custom threshold rule is working as before for - Creating a new rule with multiple conditions - Adding groups - Editing a rule and checking the charts are shown as before - Test both adHoc and persisted data view --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Faisal Kanout <[email protected]>
@maryam-saeidi which parts are going to be configurable? Do you need any input from the team? |
@gbamparop At the moment, I added support for the following parts:
I think it is a good set of options to start with (similar to what we have in the Metric threshold). When you start working on passing parameters, our team can collaborate in case something is missing or there is an issue with this feature. |
Thanks, the |
@gbamparop I merged the related PR, if something is missing, I will create a separate issue/PR to cover that. |
📝 Summary
Currently, we have prefill functionality in metric threshold to use it in metric explorer, we want to add a similar functionality in the custom threshold rule to use this rule in infra and logs apps. (Here is how it is implemented for the metric threshold rule)
✅ Acceptance Criteria
The text was updated successfully, but these errors were encountered: