-
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
[ResponseOps][Alerting] Add deprecation object to legacy rule endpoints #201550
Merged
jcger
merged 28 commits into
elastic:main
from
jcger:issue-196556-rules-deprecation-object
Nov 28, 2024
Merged
Changes from 21 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c2d86ec
first commit
jcger 1996b09
update pr number
jcger e689084
types + create api
jcger 77595b1
delete api
jcger ce0047e
disable
jcger 2124088
enable api
jcger dc06b62
find api
jcger fd60625
get api
jcger c67a68d
instance summary api
jcger 25ac21f
get alert state api
jcger 23ef000
health api
jcger b1ab837
get types api
jcger 73ad1b7
mute all api
jcger cabfbf6
mute instance api
jcger 271d1cd
unmute_all api
jcger 7d80952
unmute_instance api
jcger 8fbf230
update api
jcger 0d61400
update api key
jcger 33fcdb8
update docs
jcger a90cabb
add missing test fix
jcger c1d595f
fix types
jcger 76ada6e
pr review
jcger 1c6ffe5
Merge branch 'main' into issue-196556-rules-deprecation-object
jcger 1a44804
fix test
jcger 2ea6b1c
check suffix only in tests
jcger 8b5766f
Merge branch 'main' of github.com:jcger/kibana into issue-196556-rule…
jcger b07b47e
[DOCS] Add bulleted lists
lcawl ad0e7cc
[DOCS] Update changelog
lcawl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,37 @@ For Elastic Security solution release information, refer to {security-guide}/rel | |
|
||
|
||
[discrete] | ||
[[breaking-201550]] | ||
.[Alerting] Legacy deprecations (9.0.0) | ||
[%collapsible] | ||
==== | ||
*Details* + | ||
`POST /api/alerts/alert/{id?}` has been replaced by `POST /api/alerting/rule/{id?}` | ||
`GET /api/alerts/alert/{id}` has been replaced by `GET /api/alerting/rule/{id}` | ||
`PUT /api/alerts/alert/{id}` has been replaced by `PUT /api/alerting/rule/rule/{id}` | ||
`DELETE: /api/alerts/alert/{id}` has been replaced by `DELETE /api/alerting/rule/{id}` | ||
`POST /api/alerts/alert/{id}/_disable` has been replaced by `POST /api/alerting/rule/{id}/_disable` | ||
`POST /api/alerts/alert/{id}/_enable` has been replaced by `POST /api/alerting/rule/{id}/_enable` | ||
`GET /api/alerts/_find` has been replaced by `GET /api/alerting/rules/_find` | ||
`GET /api/alerts/_health` has been replaced by `GET /api/alerting/rule/_health` | ||
`GET /api/alerts/list_alert_types` has been replaced by `GET /api/alerting/rule_types` | ||
`POST /api/alerts/alert/{alert_id}/alert_instance/{alert_instance_id}/_mute` has been replaced by `POST /api/alerting/rule/{rule_id}/alert/{alert_id}/_mute` | ||
`POST /api/alerts/alert/{alert_id}/alert_instance/{alert_instance_id}/_unmute` has been replaced by `POST /api/alerting/rule/{rule_id}/alert/{alert_id}/_unmute` | ||
`POST /api/alerts/alert/{id}/_mute_all` has been replaced by `POST /api/alerting/rule/{id}/_mute_all` | ||
`POST /api/alerts/alert/{id}/_unmute_all` has been replaced by `POST /api/alerting/rule/{id}/_unmute_all` | ||
`POST /api/alerts/alert/{id}/_update_api_key` has been replaced by `POST /api/alerting/rule/{id}/_update_api_key` | ||
`GET /api/alerts/{id}/_instance_summary` has been deprecated without replacement | ||
`GET /api/alerts/{id}/state` has been deprecated without replacement | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found this replacement route but it's internal and therefore the deprecation note. Wdyt? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we should not offer the internal APIs as alternatives. |
||
|
||
*Impact* + | ||
Deprecated endpoints will fail with a 404 status code starting from version 9.0.0 | ||
|
||
*Action* + | ||
Remove references to `GET /api/alerts/{id}/_instance_summary` endpoint. | ||
Remove references to `GET /api/alerts/{id}/state` endpoint. | ||
Replace references to endpoints listed as deprecated by it's replacement. See `Details` section. | ||
==== | ||
|
||
[[breaking-199656]] | ||
.Removed all security v1 endpoints (9.0.0) | ||
[%collapsible] | ||
|
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 couldn't find a replacement for this, therefore the deprecation note