-
Notifications
You must be signed in to change notification settings - Fork 104
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 the custom date range metric data in the table aws_cost_usage_* table #2168
base: main
Are you sure you want to change the base?
Conversation
aws/table_aws_cost_usage.go
Outdated
// Quals columns - to filter the lookups | ||
{ | ||
Name: "granularity", | ||
Description: "", |
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.
@ParthaI could you please add the missing descriptions?
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
@ParthaI could you please fix the merge conflicts in this PR? |
Name: "period_start", | ||
Require: plugin.Optional, | ||
Operators: []string{">", ">=", "=", "<", "<="}, | ||
CacheMatch: "exact", |
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.
CacheMatch: "exact", | |
CacheMatch: query_cache.CacheMatchExact |
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.
@ParthaI could you please make the change across all the tables?
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.
Updated!
with ranked_costs as ( | ||
select | ||
linked_account_id, | ||
period_start, | ||
cast(unblended_cost_amount as real) as unblended_cost_amount, | ||
rank() over (partition by linked_account_id order by unblended_cost_amount desc) as rnk | ||
from | ||
aws_cost_by_account_daily | ||
) | ||
select * from ranked_costs where rnk <= 10; |
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.
@ParthaI could you please remove the sqlite query over here since it does not support rank window function?
Not stale |
Note: Currently the changes has been made to the table
aws_cost_usage
Integration test logs
Logs
Example query results
Results