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

Ability to get upfront price separate from hourly price #25

Open
thomas0376 opened this issue Apr 12, 2023 · 2 comments
Open

Ability to get upfront price separate from hourly price #25

thomas0376 opened this issue Apr 12, 2023 · 2 comments

Comments

@thomas0376
Copy link

I can see that for each resource configuration, the effective price is being returned. It would be great if we could get the upfront price separate from the hourly price

@reganbrianpatrick
Copy link
Contributor

@thomas0376 How do you think this would work best in the add-on? would there be a different formula for "upfront price" and "hourly price" or would this be something that would be good to see in the sidebar when you hover over the cell that has an effective cost? Any additional information on how you use this information would be helpful!

@thomas0376
Copy link
Author

@reganbrianpatrick I don't have a strong view on how it would work best as long as the user has the ability to retrieve hourly, upfront as well as the effective price.

Looking at the AWS_EC2 formula, the first param ("purchaseType"), for example, can either be "ondemand" or "reserved". You could change the second input option ("reserved") in such a way that the user can specify whether they want the "hourly", "upfront" or "effective" price. The second option will therefore become three options: "reserved_hr", "reserved_uf" or "reserved_eff".

My personal preference would be to compress all RI attributes in the first param but this might require quite a bit of work. In this case the user could chose from: "ondemand", "1ynuf_std_hr" (1Y No Upfront, Standard, Hourly Price), "1ypuf_std_hr" (1Y Partial Upfront, Standard, Hourly Price), "1ypuf_std_uf" (1Y Partial Upfront, Standard, Upfront Price), "1ypuf_std_eff" (1Y Partial Upfront, Standard, Effective Price) etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants