-
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
[DOCS] Remove deprecated action variables from rule APIs #161216
Conversation
Documentation preview: |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
Pinging @elastic/response-ops (Team:ResponseOps) |
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.
LGTM
I tested the list of "renamed" vars by creating a rule, making it active, and adding an email action with the following body, so I could eyeball if the values were the same. I didn't have a way of testing alert.actionSubgroup
(not sure if anyone is even using it anymore!), but everything else looked fine.
old name | old value | new value |
---|---|---|
alertId | {{alertId}} | {{rule.id}} |
alertName | {{alertName}} | {{rule.name}} |
spaceId | {{spaceId}} | {{rule.spaceId}} |
tags | {{tags}} | {{rule.tags}} |
params | {{params}} | {{rule.params}} |
alertInstanceId | {{alertInstanceId}} | {{alert.id}} |
alertActionGroup | {{alertActionGroup}} | {{alert.actionGroup}} |
alertActionSubgroup | {{alertActionSubgroup}} | {{alert.actionSubgroup}} |
alertActionGroupName | {{alertActionGroupName}} | {{alert.actionGroupName}} |
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.
LGTM!
) (cherry picked from commit 8afb9b0)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…) (#161364) # Backport This will backport the following commits from `main` to `8.9`: - [[DOCS] Remove deprecated action variables from rule APIs (#161216)](#161216) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-06T14:49:49Z","message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","docs","backport:all-open","v8.10.0"],"number":161216,"url":"https://github.com/elastic/kibana/pull/161216","mergeCommit":{"message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161216","number":161216,"mergeCommit":{"message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69"}}]}] BACKPORT--> Co-authored-by: Lisa Cawley <[email protected]>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
) (cherry picked from commit 8afb9b0)
…) (#161378) # Backport This will backport the following commits from `main` to `8.8`: - [[DOCS] Remove deprecated action variables from rule APIs (#161216)](#161216) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-06T14:49:49Z","message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","docs","backport:all-open","v8.9.0","v8.10.0"],"number":161216,"url":"https://github.com/elastic/kibana/pull/161216","mergeCommit":{"message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/161364","number":161364,"state":"MERGED","mergeCommit":{"sha":"2d9104caf92fe50363b91d444e6a562235e00cfe","message":"[8.9] [DOCS] Remove deprecated action variables from rule APIs (#161216) (#161364)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.9`:\n- [[DOCS] Remove deprecated action variables from rule APIs\n(#161216)](https://github.com/elastic/kibana/pull/161216)\n\n<!--- Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Lisa\nCawley\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2023-07-06T14:49:49Z\",\"message\":\"[DOCS]\nRemove deprecated action variables from rule APIs\n(#161216)\",\"sha\":\"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69\",\"branchLabelMapping\":{\"^v8.10.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"Feature:Alerting\",\"release_note:skip\",\"Team:ResponseOps\",\"docs\",\"backport:all-open\",\"v8.10.0\"],\"number\":161216,\"url\":\"https://github.com/elastic/kibana/pull/161216\",\"mergeCommit\":{\"message\":\"[DOCS]\nRemove deprecated action variables from rule APIs\n(#161216)\",\"sha\":\"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.10.0\",\"labelRegex\":\"^v8.10.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/161216\",\"number\":161216,\"mergeCommit\":{\"message\":\"[DOCS]\nRemove deprecated action variables from rule APIs\n(#161216)\",\"sha\":\"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69\"}}]}]\nBACKPORT-->\n\nCo-authored-by: Lisa Cawley <[email protected]>"}},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161216","number":161216,"mergeCommit":{"message":"[DOCS] Remove deprecated action variables from rule APIs (#161216)","sha":"8afb9b086cb9a21601f1f0a4a0106aaebedb3b69"}}]}] BACKPORT--> Co-authored-by: Kibana Machine <[email protected]>
Summary
Relates to #161126, #160760
This PR replaces
alertName
withrule.name
andparams
withrule.params
in the API examples.