-
Notifications
You must be signed in to change notification settings - Fork 92
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
[COST-4945] Create a new API to return list of EC2-compute instances #5117
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5117 +/- ##
=====================================
Coverage 94.1% 94.1%
=====================================
Files 373 373
Lines 31040 31127 +87
Branches 4564 4571 +7
=====================================
+ Hits 29214 29297 +83
- Misses 1162 1165 +3
- Partials 664 665 +1 |
…u/koku into cost-4945_awsec2_compute_api
…u/koku into cost-4945_awsec2_compute_api
…u/koku into cost-4945_awsec2_compute_api
update unit tests
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.
a few comments:
- move report_specific filters to main filter map - use report_type instead of kwargs in get_paginator - do not use deepcopy - just overwrite query_data - resolution and time_scope_units are always monthly and month respectively - overide start and end date params in base ParamSerializer - overide limit and offset in base FilterSerializer
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.
Looks good to me! Nicely done.
Jira Ticket
COST-4945
Description
This change creates a new API to return a list of AWS EC2 compute instances.
Testing
Checkout Branch
Restart Koku
Load test data for AWS
Hit endpoint
You should see a list of EC2 instances in the response data, similar to this:
Example valid filter/order by params to use with this API
Example invalid params not expected to work with this API
Release Notes