diff --git a/src/spaceone/cost_analysis/model/budget_model.py b/src/spaceone/cost_analysis/model/budget_model.py index 4d39c81e..719d175d 100644 --- a/src/spaceone/cost_analysis/model/budget_model.py +++ b/src/spaceone/cost_analysis/model/budget_model.py @@ -71,6 +71,7 @@ class Budget(MongoModel): "ordering": ["name"], "indexes": [ "name", + "resource_group", "data_source_id", "project_id", "workspace_id", diff --git a/src/spaceone/cost_analysis/model/budget_usage_model.py b/src/spaceone/cost_analysis/model/budget_usage_model.py index ac750f71..91b825e3 100644 --- a/src/spaceone/cost_analysis/model/budget_usage_model.py +++ b/src/spaceone/cost_analysis/model/budget_usage_model.py @@ -38,8 +38,9 @@ class BudgetUsage(MongoModel): "budget_id", "name", "date", - "project_id", + "resource_group", "data_source_id", + "project_id", "workspace_id", "domain_id", ], diff --git a/src/spaceone/cost_analysis/model/data_source_model.py b/src/spaceone/cost_analysis/model/data_source_model.py index 8c33126f..30530142 100644 --- a/src/spaceone/cost_analysis/model/data_source_model.py +++ b/src/spaceone/cost_analysis/model/data_source_model.py @@ -81,5 +81,12 @@ class DataSource(MongoModel): "provider", ], "ordering": ["name"], - "indexes": ["state", "data_source_type", "provider", "workspace_id", "domain_id"], + "indexes": [ + "state", + "data_source_type", + "provider", + "resource_group", + "workspace_id", + "domain_id" + ], } diff --git a/src/spaceone/cost_analysis/model/data_source_rule_model.py b/src/spaceone/cost_analysis/model/data_source_rule_model.py index 8a7fc366..ef03ff93 100644 --- a/src/spaceone/cost_analysis/model/data_source_rule_model.py +++ b/src/spaceone/cost_analysis/model/data_source_rule_model.py @@ -56,6 +56,7 @@ class DataSourceRule(MongoModel): # 'data_source_rule_id', "order", "conditions_policy", + "resource_group", "data_source_id", "workspace_id", "domain_id", diff --git a/src/spaceone/cost_analysis/model/job_model.py b/src/spaceone/cost_analysis/model/job_model.py index fa175a12..7f90e9f3 100644 --- a/src/spaceone/cost_analysis/model/job_model.py +++ b/src/spaceone/cost_analysis/model/job_model.py @@ -56,7 +56,9 @@ class Job(MongoModel): "indexes": [ # 'job_id', "status", + "resource_group", "data_source_id", + "workspace_id", "domain_id", "created_at", ], diff --git a/src/spaceone/cost_analysis/model/job_task_model.py b/src/spaceone/cost_analysis/model/job_task_model.py index 3a720358..d8790a06 100644 --- a/src/spaceone/cost_analysis/model/job_task_model.py +++ b/src/spaceone/cost_analysis/model/job_task_model.py @@ -47,7 +47,9 @@ class JobTask(MongoModel): # 'job_task_id', "status", "job_id", + "resource_group", "data_source_id", + "workspace_id", "domain_id", "created_at", ],