Enterprise WeChat
Enterprise WeChat sink connector
Description
A sink plugin which use Enterprise WeChat robot send message
For example, if the data from upstream is [
"alarmStatus": "firing", "alarmTime": "2022-08-03 01:38:49","alarmContent": "The disk usage exceeds the threshold"
], the output content to WeChat Robot is the following:alarmStatus: firing
alarmTime: 2022-08-03 01:38:49
alarmContent: The disk usage exceeds the thresholdTips: WeChat sink only support
string
webhook and the data from source will be treated as body content in web hook.
Key features
Options
name | type | required | default value |
---|---|---|---|
url | String | Yes | - |
mentioned_list | array | No | - |
mentioned_mobile_list | array | No | - |
common-options | no | - |
url [string]
Enterprise WeChat webhook url format is https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=XXXXXX(string)
mentioned_list [array]
A list of userids to remind the specified members in the group (@ a member), @ all means to remind everyone. If the developer can't get the userid, he can use called mobile list
mentioned_mobile_list [array]
Mobile phone number list, remind the group member corresponding to the mobile phone number (@ a member), @ all means remind everyone
common options
Sink plugin common parameters, please refer to Sink Common Options for details
Example
simple:
WeChat {
url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa"
}
WeChat {
url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa"
mentioned_list=["wangqing","@all"]
mentioned_mobile_list=["13800001111","@all"]
}
Changelog
Change Log
Change | Commit | Version |
---|---|---|
[improve] http connector options (#8969) | https://github.com/apache/seatunnel/commit/63ff9f910 | 2.3.10 |
[Feature][Restapi] Allow metrics information to be associated to logical plan nodes (#7786) | https://github.com/apache/seatunnel/commit/6b7c53d03 | 2.3.9 |
[Feature][Core] Support using upstream table placeholders in sink options and auto replacement (#7131) | https://github.com/apache/seatunnel/commit/c4ca74122 | 2.3.6 |
[Feature][Connector-V2] Support TableSourceFactory/TableSinkFactory on http (#5816) | https://github.com/apache/seatunnel/commit/6f49ec6ea | 2.3.4 |
[Improve][build] Give the maven module a human readable name (#4114) | https://github.com/apache/seatunnel/commit/d7cd60105 | 2.3.1 |
[Improve][Project] Code format with spotless plugin. (#4101) | https://github.com/apache/seatunnel/commit/a2ab16656 | 2.3.1 |
[Hotfix][OptionRule] Fix option rule about all connectors (#3592) | https://github.com/apache/seatunnel/commit/226dc6a11 | 2.3.0 |
[Feature][Connector-V2][Http] Add option rules && Improve Myhours sink connector (#3351) | https://github.com/apache/seatunnel/commit/cc8bb60c8 | 2.3.0 |
[Bug][Connector-V2] Fix wechat sink data serialization (#2856) | https://github.com/apache/seatunnel/commit/3aee11fc1 | 2.3.0-beta |
[Feature][Connector-V2] Add Enterprise Wechat sink connector (#2412) | https://github.com/apache/seatunnel/commit/3e200e0a3 | 2.2.0-beta |