Skip to content

Conversation

@jasontedor
Copy link
Member

This commit adds an API for deleting autoscaling policies.

This commit adds an API for deleting autoscaling policies.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Autoscaling)

@jasontedor
Copy link
Member Author

@elasticmachine update branch

@jasontedor
Copy link
Member Author

@elasticmachine update branch

Copy link
Contributor

@henningandersen henningandersen left a 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);
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened #54643.

@jasontedor jasontedor merged commit 6d0bd25 into elastic:master Apr 2, 2020
jasontedor added a commit that referenced this pull request Apr 2, 2020
This commit adds an API for deleting autoscaling policies.
@jasontedor jasontedor deleted the delete-autoscaling-policy branch April 2, 2020 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants