-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemail-sample.yaml
99 lines (93 loc) · 2.32 KB
/
email-sample.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# 任务参数配置
app:
logger: "DEBUG" # 日志模式
lang: "zh-CN" # zh-CN/en
source:
kafka-bootstrap: "localhost:9093"
job:
parallelism:
default: 2
max: 100
checkpoint:
interval: 5000
storage: "/event-senses-bot/log/checkpoint"
filter:
enabled: true
max-cache-expire: 300
sink:
parallelism: 2
backup: "/event-senses-bot/log/backup"
cache:
max-queue: 5
interval-millis: 5000
db:
redis:
cluster-enabled: false
cluster-nodes:
host: localhost
port: 6379
username:
password:
database: 0
pool:
max-total: 20
max-idle: 8
min-idle: 0
max-wait-millis: 3000
clickhouse:
jdbc: "jdbc:clickhouse://localhost:8123/event_senses_bot"
username:
password:
# 事件配置
event:
name: "邮件动作事件示例"
code: "EVENT-81AC845C93B8"
catalog: "TEST"
desc: "这是一个邮件通知事件示例"
# 事件渠道配置
channel:
name: "测试事件渠道"
code: "CHANNEL-C88A8DAFCD62"
topic: "event_sense_topic"
format: "JSON"
groupId: "event_sense_group1"
encryption:
type: "TEXT"
key: ""
params:
- { param: "uid", filter: true, nullable: true, datatype: "STRING", desc: "UID" }
- { param: "test_value", datatype: "DOUBLE", desc: "测试值" }
- { param: "test_text", datatype: "STRING", desc: "测试文本" }
# 流水线配置
actions:
- action:
name: "自定义条件动作示例"
code: "ACTION-92DBD2039123"
desc: ""
type: "CONDITION"
parent: "0"
config:
condition:
expression: "${test_value > 300}"
truly: "ACTION-60BABFCFC7E7"
falsely:
- action:
name: "发送邮件动作示例"
code: "ACTION-60BABFCFC7E7"
desc: ""
type: "EMAIL"
parent: "ACTION-92DBD2039123"
config:
email:
server: "smtp.yourserver.cn"
smtp: 465
ssl: true
tls: true
username: "[email protected]"
password: "YOUR_PASSWORD"
subject: "通知发送成功"
from: "[email protected]"
to: "[email protected]"
cc: "[email protected]"
content: >
<b>测试 Testing: </b> <span style="color:red">${test_text}</span>