Skip to content

Commit 4c6f11c

Browse files
committed
feat: add 'account_id' field at CostInfo (#199)
1 parent 2ad9eb6 commit 4c6f11c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/spaceone/cost_analysis/info/cost_info.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def CostInfo(cost_vo: Cost, minimal=False):
1616
"product": cost_vo.product,
1717
"usage_type": cost_vo.usage_type,
1818
"resource": cost_vo.resource,
19+
"account_id": cost_vo.account_id,
1920
"data_source_id": cost_vo.data_source_id,
2021
"workspace_id": cost_vo.workspace_id,
2122
"billed_date": cost_vo.billed_date,

src/spaceone/cost_analysis/model/cost_model.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Cost(MongoModel):
1616
resource = StringField(default=None, null=True)
1717
tags = DictField(default={})
1818
additional_info = DictField(default={})
19+
account_id = StringField(max_length=40, default=None, null=True)
1920
service_account_id = StringField(max_length=40, default=None, null=True)
2021
project_id = StringField(max_length=40, default=None, null=True)
2122
data_source_id = StringField(max_length=40)
@@ -88,6 +89,7 @@ class MonthlyCost(MongoModel):
8889
resource = StringField(default=None, null=True)
8990
tags = DictField(default={})
9091
additional_info = DictField(default={})
92+
account_id = StringField(max_length=40, default=None, null=True)
9193
service_account_id = StringField(max_length=40, default=None, null=True)
9294
project_id = StringField(max_length=40, default=None, null=True)
9395
data_source_id = StringField(max_length=40)

0 commit comments

Comments
 (0)