Skip to content
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 get autoscaling policy API #54762

Merged
merged 2 commits into from
Apr 4, 2020

Conversation

jasontedor
Copy link
Member

This commit adds the get autoscaling policy API.

This commit adds the get autoscaling policy API.
@elasticmachine
Copy link
Collaborator

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

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.


[source,console-result]
--------------------------------------------------
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we need an array to prepare for listing all deciders? I guess we can state we will never add wildcard support and hence it is two different endpoints, i.e., this is OK?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I do not think that we should support wildcards, or getting multiple policies at once (comma-separated). In general, I think that it greatly complicates our APIs (e.g., what do we do if one policy exists, and another doesn't? we have faced these challenges with existing APIs and I think it's just complicated our APIs and their implementations with little benefit to our users).

@jasontedor jasontedor merged commit 48b314a into elastic:master Apr 4, 2020
jasontedor added a commit that referenced this pull request Apr 4, 2020
This commit adds the get autoscaling policy API.
@jasontedor jasontedor deleted the get-autoscaling-policy branch April 4, 2020 22: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