From 7cc7656422bc68ed2638cc9fd0c47aefe107c9ad Mon Sep 17 00:00:00 2001 From: peterxucai Date: Thu, 26 Dec 2024 17:43:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20mongodb=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=20#8849?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ticket/builders/mongodb/mongo_reduce_shard_nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbm-ui/backend/ticket/builders/mongodb/mongo_reduce_shard_nodes.py b/dbm-ui/backend/ticket/builders/mongodb/mongo_reduce_shard_nodes.py index e06f26b5fe..bb8e20809f 100644 --- a/dbm-ui/backend/ticket/builders/mongodb/mongo_reduce_shard_nodes.py +++ b/dbm-ui/backend/ticket/builders/mongodb/mongo_reduce_shard_nodes.py @@ -28,6 +28,9 @@ class MongoDBReduceShardNodesDetailSerializer(BaseMongoDBOperateDetailSerializer class ReduceMongosDetailSerializer(serializers.Serializer): cluster_ids = serializers.ListField(help_text=_("集群ID列表"), child=serializers.IntegerField(help_text=_("集群ID"))) reduce_shard_nodes = serializers.IntegerField(help_text=_("缩容数量")) + current_shard_nodes_num = serializers.IntegerField(help_text=_("当前shard节点数量")) + machine_instance_num = serializers.IntegerField(help_text=_("单机部署实例数量")) + shard_num = serializers.IntegerField(help_text=_("shard数量")) is_safe = serializers.BooleanField(help_text=_("是否做安全检测")) infos = serializers.ListSerializer(help_text=_("缩容shard节点数信息"), child=ReduceMongosDetailSerializer())