Skip to content

Commit

Permalink
feat: modify get_tasks for getting benefit cost data
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 8b58562 commit 009c91b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/cloudforet/cost_analysis/manager/job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,19 @@ def get_tasks(
synced_accounts = self._extend_synced_accounts(
synced_accounts, first_sync_tenants
)
# Benefit Job Task
if options.get("cost_metric") == "AmortizedCost":
tasks.append(
{
"task_options": {
"start": start_month,
"account_agreement_type": billing_account_agreement_type,
"collect_scope": "billing_account_id",
"is_benefit_job": True,
}
}
)

else:
tasks = [
{
Expand Down

0 comments on commit 009c91b

Please sign in to comment.