Skip to content

Commit

Permalink
feat: add dimension when request query usage
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Jul 31, 2024
1 parent 97b355a commit d208087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cloudforet/cost_analysis/conf/cost_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
}
BENEFIT_GROUPING = [
{"type": "Dimension", "name": "CustomerTenantId"},
{"type": "Dimension", "name": "CustomerName"},
{"type": "Dimension", "name": "PricingModel"},
{"type": "Dimension", "name": "Frequency"},
{"type": "Dimension", "name": "BenefitId"},
Expand Down
1 change: 1 addition & 0 deletions src/cloudforet/cost_analysis/manager/cost_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _make_benefit_cost_data(
def _make_benefit_cost_info(self, result: dict, billed_at: str) -> dict:
additional_info = {
"Tenant Id": result.get("CustomerTenantId"),
"Customer Name": result.get("CustomerName"),
"Pricing Model": result.get("PricingModel"),
"Frequency": result.get("BillingFrequency"),
"Benefit Id": result.get("BenefitId"),
Expand Down

0 comments on commit d208087

Please sign in to comment.