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 support for resource billing summary APIs #3

Open
vmj opened this issue Feb 24, 2020 · 2 comments
Open

Add support for resource billing summary APIs #3

vmj opened this issue Feb 24, 2020 · 2 comments
Milestone

Comments

@vmj
Copy link
Owner

vmj commented Feb 24, 2020

There's a new API

  • GET /1.3/account/resource_billing_summary/RESOURCE_ID/YYYY-MM

where RESOURCE_ID can be a server or storage UUID or an IP address.

https://developers.upcloud.com/1.3/3-accounts/#get-monthly-resource-billing-summary

This issue is separate from #2 but the implied (new) Billing resource will be a mess.

@vmj vmj added the api-1.3 Needed to fully support UpCloud API 1.3 label Feb 24, 2020
@vmj
Copy link
Owner Author

vmj commented Mar 4, 2020

This seems to be available in 1.2 API, too.

@vmj vmj removed the api-1.3 Needed to fully support UpCloud API 1.3 label Mar 4, 2020
@vmj
Copy link
Owner Author

vmj commented Mar 4, 2020

The response has the following structure:

  • Billing (new resource)
    • currency: String
    • totalAmount: BigDecimal
    • details: Details (new resource)
      • type: String
      • resourceId: String
      • hours: Integer
      • ... some type specific fields ...
      • plan: String (for server type)
      • size: Integer (for storage type)
    • dailySums: DailySums (new resource)
      • ... all fields are named "YYYY_MM_DD", type BigDecimal ...

That's ugly ☹️

@vmj vmj changed the title Add support for monthly resource billing summary APIs Add support for resource billing summary APIs Mar 4, 2020
@vmj vmj added this to the 0.0.8 milestone Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant