-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add delete autoscaling policy API #54601
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 delete autoscaling policy API #54601
Conversation
This commit adds an API for deleting autoscaling policies.
|
Pinging @elastic/es-distributed (:Distributed/Autoscaling) |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
henningandersen
left a comment
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.
| public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException { | ||
| builder.startObject(); | ||
| { | ||
| builder.field("name", name); |
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 think the norm for Request toXContent is to not include fields that are not part of the REST body. For Instance, PutAutoscalingPolicyAction.Request.toXContent does not include the policy name. I tend to think this toXContent should generate an empty object or maybe the request should not implement toXContentObject?
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 opened #54643.
This commit adds an API for deleting autoscaling policies.
This commit adds an API for deleting autoscaling policies.