DingTalk

DingtalkSinkConnector: From EventMesh to DingTalk

  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-DINGTALK
  5. idc: FT
  6. env: PRD
  7. group: dingTalkSink
  8. appId: 5034
  9. userName: dingTalkSinkUser
  10. passWord: dingTalkPassWord
  11. sinkConnectorConfig:
  12. connectorName: dingTalkSink
  13. # Please refer to: https://open.dingtalk.com/document/orgapp/the-robot-sends-a-group-message
  14. appKey: dingTalkAppKey
  15. appSecret: dingTalkAppSecret
  16. openConversationId: dingTalkOpenConversationId
  17. robotCode: dingTalkRobotCode

CloudEvent Attributes

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

  • When key=dingtalktemplatetype, value=text/markdown, indicating the text type of the event.
  • When text type is markdown, you can add extension: key=dingtalkmarkdownmessagetitle, value indicates the title of the event.