From fb9747cb7a1798076d63ce6b4ab1d4de34e826a6 Mon Sep 17 00:00:00 2001 From: gaohongsong Date: Wed, 1 Nov 2023 15:55:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20=E8=87=AA=E5=AE=9A=E4=B9=89key?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=AD=96=E7=95=A5=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20close=20#1614?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_monitor/serializers.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dbm-ui/backend/db_monitor/serializers.py b/dbm-ui/backend/db_monitor/serializers.py index 43023eb6ef..6c28705a6b 100644 --- a/dbm-ui/backend/db_monitor/serializers.py +++ b/dbm-ui/backend/db_monitor/serializers.py @@ -187,7 +187,16 @@ def validate(self, attrs): class Meta: model = MonitorPolicy - fields = ["name", "bk_biz_id", "parent_id", "targets", "test_rules", "notify_rules", "notify_groups"] + fields = [ + "name", + "bk_biz_id", + "parent_id", + "targets", + "test_rules", + "notify_rules", + "notify_groups", + "custom_conditions", + ] class MonitorPolicyEmptySerializer(serializers.Serializer):