FIx insight_logs for mobile app backend (#1498)
This commit is contained in:
parent
0f23a449c7
commit
747a2b2bc0
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue