Skip to content

Commit

Permalink
feat: add 'account_id' field at CostInfo (cloudforet-io#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Apr 24, 2024
1 parent 2ad9eb6 commit 4c6f11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/spaceone/cost_analysis/info/cost_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def CostInfo(cost_vo: Cost, minimal=False):
"product": cost_vo.product,
"usage_type": cost_vo.usage_type,
"resource": cost_vo.resource,
"account_id": cost_vo.account_id,
"data_source_id": cost_vo.data_source_id,
"workspace_id": cost_vo.workspace_id,
"billed_date": cost_vo.billed_date,
Expand Down
2 changes: 2 additions & 0 deletions src/spaceone/cost_analysis/model/cost_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Cost(MongoModel):
resource = StringField(default=None, null=True)
tags = DictField(default={})
additional_info = DictField(default={})
account_id = StringField(max_length=40, default=None, null=True)
service_account_id = StringField(max_length=40, default=None, null=True)
project_id = StringField(max_length=40, default=None, null=True)
data_source_id = StringField(max_length=40)
Expand Down Expand Up @@ -88,6 +89,7 @@ class MonthlyCost(MongoModel):
resource = StringField(default=None, null=True)
tags = DictField(default={})
additional_info = DictField(default={})
account_id = StringField(max_length=40, default=None, null=True)
service_account_id = StringField(max_length=40, default=None, null=True)
project_id = StringField(max_length=40, default=None, null=True)
data_source_id = StringField(max_length=40)
Expand Down

0 comments on commit 4c6f11c

Please sign in to comment.