-
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
Add fieldsForAAD to observability plugin rule types #172809
Add fieldsForAAD to observability plugin rule types #172809
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: |
@@ -110,6 +110,7 @@ export function thresholdRuleType( | |||
name: i18n.translate('xpack.observability.threshold.ruleName', { | |||
defaultMessage: 'Custom threshold (Beta)', | |||
}), | |||
fieldsForAAD: CUSTOM_THRESHOLD_AAD_FIELDS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to merge this with ?
import { O11Y_AAD_FIELDS } from '@kbn/infra-plugin/common/constants';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about it but since we will deprecate the infra rules in the future, I thought having these fields separately makes more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also move this Fields in package like '@kbn/rule-data-utils
, might be useful to have it one place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced this will be used in multiple places in the future, but if you prefer it that way, I will move it there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it for now. if it makes sense we can move in future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you a lot for doing that! it will make a big a difference to our user.
Related to elastic#158324 ## Summary This PR adds `fieldsForAAD` to the SLO burn rate and Custom threshold rules to ensure conditional actions can use fields related to these rules. <img src="https://github.com/elastic/kibana/assets/12370520/7cb31448-58cc-4bf6-b0da-cdc5e746ae60" width=500 /> (cherry picked from commit 6e69fdc)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…172826) # Backport This will backport the following commits from `main` to `8.12`: - [Add fieldsForAAD to observability plugin rule types (#172809)](#172809) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maryam Saeidi","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-07T14:28:04Z","message":"Add fieldsForAAD to observability plugin rule types (#172809)\n\nRelated to #158324\r\n\r\n## Summary\r\n\r\nThis PR adds `fieldsForAAD` to the SLO burn rate and Custom threshold\r\nrules to ensure conditional actions can use fields related to these\r\nrules.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/7cb31448-58cc-4bf6-b0da-cdc5e746ae60\"\r\nwidth=500 />","sha":"6e69fdceec7db321601923c005063c17bf605c78","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:prev-minor","Team:obs-ux-management","v8.13.0"],"number":172809,"url":"https://github.com/elastic/kibana/pull/172809","mergeCommit":{"message":"Add fieldsForAAD to observability plugin rule types (#172809)\n\nRelated to #158324\r\n\r\n## Summary\r\n\r\nThis PR adds `fieldsForAAD` to the SLO burn rate and Custom threshold\r\nrules to ensure conditional actions can use fields related to these\r\nrules.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/7cb31448-58cc-4bf6-b0da-cdc5e746ae60\"\r\nwidth=500 />","sha":"6e69fdceec7db321601923c005063c17bf605c78"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172809","number":172809,"mergeCommit":{"message":"Add fieldsForAAD to observability plugin rule types (#172809)\n\nRelated to #158324\r\n\r\n## Summary\r\n\r\nThis PR adds `fieldsForAAD` to the SLO burn rate and Custom threshold\r\nrules to ensure conditional actions can use fields related to these\r\nrules.\r\n\r\n<img\r\nsrc=\"https://github.com/elastic/kibana/assets/12370520/7cb31448-58cc-4bf6-b0da-cdc5e746ae60\"\r\nwidth=500 />","sha":"6e69fdceec7db321601923c005063c17bf605c78"}}]}] BACKPORT--> Co-authored-by: Maryam Saeidi <[email protected]>
Related to #158324
Summary
This PR adds
fieldsForAAD
to the SLO burn rate and Custom threshold rules to ensure conditional actions can use fields related to these rules.