-
Notifications
You must be signed in to change notification settings - Fork 17
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
Return costs #155
base: main
Are you sure you want to change the base?
Return costs #155
Conversation
LGTM, @moshloop please have a second look |
if result.Costs != nil { | ||
gormDB := db.DefaultDB() | ||
var accountTotal1h, accountTotal1d, accountTotal7d, accountTotal30d float64 | ||
for _, item := range result.Costs.LineItems { |
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.
I think this is missing external_type, Did we also not extract this into a common clause so that we con't have to keep repeating it ?
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.
@moshloop external type wasn't being used in aws/cost.go
which is where this code comes from. Should I add it?
On hold for now because we might need to add a separate |
Add
Costs
to Scrape Result.