Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat committed Apr 26, 2024
2 parents 1223399 + 01a5111 commit 1aa6962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud_governance/policy/aws/cost_explorer_payer_billings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def filter_data_by_tag(self, cost_data: dict, tag: str, cost_center: int = ''):
'Budget': round(budget / self.MONTHS, self.DEFAULT_ROUND_DIGITS), 'CostCenter': cost_center,
'AllocatedBudget': budget,
"Owner": owner,
'AmortizedSavingsPlan': payer_monthly_savings_plan,
'SavingsPlanCost': (float(amount) / float(self.__monthly_cost_for_spa_calc.get(start_time))) * payer_monthly_savings_plan,
'TotalPercentage': (float(amount) / float(self.__monthly_cost_for_spa_calc.get(start_time)))
}
Expand Down Expand Up @@ -124,6 +125,7 @@ def filter_forecast_data(self, cost_forecast_data: list, cost_usage_data: dict,
data['Actual'] = 0
data['Forecast'] = cost
data['TotalPercentage'] = total_percentage
data['AmortizedSavingsPlan'] = payer_monthly_savings_plan
data['SavingsPlanCost'] = total_percentage * payer_monthly_savings_plan
data['PremiumSupportFee'] = total_percentage * (float(self.__monthly_cost_for_support_fee.get(start_date)) - (float(self.__monthly_cost_for_support_fee.get(start_date)) * self.__savings_discounts))
data['Account'] = account
Expand Down

0 comments on commit 1aa6962

Please sign in to comment.