command
module
Version:
v0.0.0-...-fda6f0b
Opens a new window with list of versions in this module.
Published: Jan 18, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
falcon-message
open-falcon alarm 发送消息组件,注意这个是基于2.0版本新增的im功能定制。
现在实现了钉钉群消息和微信消息
注意,需要修改mysql 中 uic库中的user表,把im字段的大小改为4000(防止钉钉token溢出截断,不生效)
微信
需要在通讯录的人员名单中的IM配置处配置微信名字。
配置说明请参考 https://github.com/Yanjunhui/chat 这里,代码也是从这里复制粘贴,进行了适当修改,以适应当前程序。
钉钉群
- 钉钉消息是发送到某个群,而不是针对单个人发送,所以需要在这个群中设置一个机器人,定义的时候,选择自定义机器人,然后将webhook链接中access_token的值拷贝出来,以备待用。
- 在falcon dashaboar 用户管理中心新建一个用户,填写email,然后在 IM 处填写
[ding]:access_token
,这里的access_token就是上面的access_token,保存用户信息。
- 在dashboard的群组管理中心新建一个群组,把上面的这个用户加入到这个群组。
- 在要告警的地方把上面的这个群组加入即可。
- 修改alarm组件中
api
下,增加 配置:"im": "http://localhost:23329/api/v1"
,端口按照本项目配置文件中的进行修改。
- 启动本项目即可。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.