Skip to content

Commit

Permalink
Merge pull request #77 from ImMin5/feature-modify-cost-option
Browse files Browse the repository at this point in the history
Add dimension when request query usage
  • Loading branch information
ImMin5 authored Jul 31, 2024
2 parents 52e4bf9 + d208087 commit e917055
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 e917055

Please sign in to comment.