File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ from typing import Optional
4+
35from pydantic import BaseModel , ConfigDict
46
57
@@ -8,3 +10,4 @@ class DeploymentEmail(BaseModel):
810 message : str
911 subject : str
1012 to : str
13+ sendcsv : Optional [bool ] = False
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ action.email.subject.alert = {{ detection.deployment.alert_action.email.subject
5555action.email.to = {{ detection.deployment.alert_action.email.to }}
5656action.email.message.alert = {{ detection.deployment.alert_action.email.message | custom_jinja2_enrichment_filter(detection) | escapeNewlines() }}
5757action.email.useNSSubject = 1
58+ {% if detection .deployment .alert_action .email .sendcsv %}
59+ action.email.sendcsv = 1
60+ {% endif %}
5861{% endif %}
5962{% if detection .deployment .alert_action .slack %}
6063action.slack = 1
You can’t perform that action at this time.
0 commit comments