WeCom

WecomSinkConnector: From EventMesh to WeCom

  1. launch your EventMesh Runtime.
  2. enable sinkConnector and check sink-config.yml.
  3. send a message to EventMesh with the topic defined in pubSubConfig.subject
  1. pubSubConfig:
  2. # default port 10000
  3. meshAddress: your.eventmesh.server:10000
  4. subject: TEST-TOPIC-WECOM
  5. idc: FT
  6. env: PRD
  7. group: weComSink
  8. appId: 5034
  9. userName: weComSinkUser
  10. passWord: weComPassWord
  11. sinkConnectorConfig:
  12. connectorName: weComSink
  13. # Please refer to: https://developer.work.weixin.qq.com/document/path/90236
  14. robotWebhookKey: weComRobotWebhookKey

CloudEvent Attributes

When using the eventmesh-connector-wecom sinking event, you need to add the corresponding extension filed in CloudEvent:

  • When key=wecomtemplatetype, value=text/markdown, indicating the text type of the event.