From a16bfcc1de3a24b71358d844cafbd44c9122ff16 Mon Sep 17 00:00:00 2001 From: lhhyung Date: Wed, 15 Oct 2025 13:37:11 +0900 Subject: [PATCH] fix: Set max_length of Metric name field to 80 --- src/spaceone/inventory/model/metric/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/inventory/model/metric/database.py b/src/spaceone/inventory/model/metric/database.py index e762218b..a9ce15a1 100644 --- a/src/spaceone/inventory/model/metric/database.py +++ b/src/spaceone/inventory/model/metric/database.py @@ -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()