Skip to content

Commit

Permalink
feat(mongodb): mongos自愈,mongo实例下架 TencentBlueKing#7010
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy committed Oct 18, 2024
1 parent 8c738eb commit d338519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def mongo_create_ticket(cluster: RedisAutofixCore, cluster_ids: list, mongos_lis
cluster_type = mongod_list[0]["cluster_type"]
# 单据信息
details = {
"bk_biz_id": cluster.bk_biz_id,
"ip_source": IpSource.RESOURCE_POOL.value,
"infos": [
{
Expand Down
1 change: 1 addition & 0 deletions dbm-ui/backend/ticket/builders/mongodb/mongo_autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class HostInfoSerializer(serializers.Serializer):
ip_source = serializers.ChoiceField(
help_text=_("主机来源"), choices=IpSource.get_choices(), default=IpSource.RESOURCE_POOL
)
bk_biz_id = serializers.IntegerField(help_text=_("业务ID"))
infos = serializers.ListSerializer(help_text=_("mongo自愈申请信息"), child=AutofixDetailSerializer())


Expand Down

0 comments on commit d338519

Please sign in to comment.