Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metric_type: GAUGE
resource_type: identity.ServiceAccount
query_options:
group_by:
- key: workspace_id
name: Workspace ID
- key: provider
name: Provider
default: true
Expand All @@ -19,4 +17,4 @@ query_options:
operator: count
unit: Count
namespace_id: ns-managed-iam-summary
version: '1.0'
version: '1.1'
1 change: 1 addition & 0 deletions src/spaceone/inventory/manager/metric_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ def _get_labels_info(query_options: dict) -> list:
@staticmethod
def _analyze_service_accounts(query: dict, domain_id: str) -> list:
default_group_by = [
"service_account_id",
"project_id",
"workspace_id",
]
Expand Down
2 changes: 1 addition & 1 deletion src/spaceone/inventory/model/metric/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class Metric(MongoModel):
metric_id = StringField(max_length=80, unique_with="domain_id")
metric_job_id = StringField(max_length=40)
name = StringField(max_length=40)
name = StringField(max_length=80)
status = StringField(max_length=20, choices=["IN_PROGRESS", "DONE"], default="DONE")
metric_type = StringField(max_length=40, choices=["COUNTER", "GAUGE"])
resource_type = StringField()
Expand Down
Loading