From 747a2b2bc0791d5d419e67b5e698c4ef0dbba0d8 Mon Sep 17 00:00:00 2001 From: Innokentii Konstantinov Date: Wed, 8 Mar 2023 21:38:59 +0800 Subject: [PATCH] FIx insight_logs for mobile app backend (#1498) --- engine/apps/alerts/models/channel_filter.py | 1 + engine/common/insight_log/chatops_insight_logs.py | 1 + 2 files changed, 2 insertions(+) diff --git a/engine/apps/alerts/models/channel_filter.py b/engine/apps/alerts/models/channel_filter.py index 9721fb2a..7ea55abe 100644 --- a/engine/apps/alerts/models/channel_filter.py +++ b/engine/apps/alerts/models/channel_filter.py @@ -179,6 +179,7 @@ class ChannelFilter(OrderedModel): @property def insight_logs_serialized(self): result = { + "filtering_term_type": self.get_filtering_term_type_display(), "filtering_term": self.str_for_clients, "order": self.order, "slack_notification_enabled": self.notify_in_slack, diff --git a/engine/common/insight_log/chatops_insight_logs.py b/engine/common/insight_log/chatops_insight_logs.py index 5999b655..6bf6055e 100644 --- a/engine/common/insight_log/chatops_insight_logs.py +++ b/engine/common/insight_log/chatops_insight_logs.py @@ -25,6 +25,7 @@ class ChatOpsType(enum.Enum): SLACK = "SLACK" MSTEAMS = "MSTEAMS" TELEGRAM = "TELEGRAM" + MOBILE_APP = "MOBILE_APP" def write_chatops_insight_log(author, event_name: ChatOpsEvent, chatops_type: ChatOpsType, **kwargs):