forked from XUJiahua/alertmanager-webhook-feishu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yml
26 lines (26 loc) · 1.08 KB
/
config.example.yml
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
bots:
webhook: # webhook 是 group name
url: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
metadata:
"链接地址": "https://www.baidu.com"
webhook_mention_all: # group 可以理解为飞书机器人+圈人策略+飞书模板的组合
url: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
mention:
all: true
webhook_mention_openids:
url: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
mention:
open_ids: [ "ou_70d31b7942cfb673038292e43daaa9c3","ou_177f84317c6ee52630edf335d5f8a6fc","ou_e7f2d4ea0b40a96f22c814574a6a791a" ]
webhook_mention_emails:
url: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
mention:
emails: [ "[email protected]" ]
webhook_mention_rotation:
url: https://open.feishu.cn/open-apis/bot/v2/hook/xxx
mention:
open_ids: [ "ou_70d31b7942cfb673038292e43daaa9c3","ou_177f84317c6ee52630edf335d5f8a6fc","ou_e7f2d4ea0b40a96f22c814574a6a791a" ]
rotation: "2021-09-27:2w"
# 如果启用 mention.emails,需要配置飞书应用的 id/secret,用于获取到 open_id
app:
id: ""
secret: ""