forked from project-koku/koku
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial HCS report finalization (project-koku#3648)
* HCS report finalization
- Loading branch information
1 parent
5219983
commit 8a245a1
Showing
16 changed files
with
313 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
koku/hcs/database/sql/reporting_aws-local_hcs_daily_summary.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT *, '{{ebs_acct_num | sqlsafe}}' as ebs_account_id | ||
FROM hive.{{schema | sqlsafe}}.{{table | sqlsafe}} | ||
WHERE source = '{{provider_uuid | sqlsafe}}' | ||
AND year = '{{year | sqlsafe}}' | ||
AND month = '{{month | sqlsafe}}' | ||
AND bill_billingentity = 'AWS Marketplace' | ||
AND lineitem_legalentity like '%Red Hat%' | ||
AND lineitem_usagestartdate >= TIMESTAMP '{{date | sqlsafe}}' | ||
AND lineitem_usagestartdate < date_add('day', 1, TIMESTAMP '{{date | sqlsafe}}') |
9 changes: 9 additions & 0 deletions
9
koku/hcs/database/sql/reporting_azure-local_hcs_daily_summary.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT *, '{{ebs_acct_num | sqlsafe}}' as ebs_account_id | ||
FROM hive.{{schema | sqlsafe}}.{{table | sqlsafe}} | ||
WHERE source = '{{provider_uuid | sqlsafe}}' | ||
AND year = '{{year | sqlsafe}}' | ||
AND month = '{{month | sqlsafe}}' | ||
AND publishertype = 'Marketplace' | ||
AND publishername like '%Red Hat%' | ||
AND coalesce(date, usagedatetime) >= TIMESTAMP '{{date | sqlsafe}}' | ||
AND coalesce(date, usagedatetime) < date_add('day', 1, TIMESTAMP '{{date | sqlsafe}}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.