tree: ad33476ddeefc741ed2a63d1b694791c4a56f112 [path history] [tgz]
  1. src/
  2. build.gradle
  3. gradle.properties
  4. README.md
  5. README_CN.md
eventmesh-connectors/eventmesh-connector-dingtalk/README.md

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
pubSubConfig:
  # default port 10000
  meshAddress: your.eventmesh.server:10000
  subject: TEST-TOPIC-DINGTALK
  idc: FT
  env: PRD
  group: dingTalkSink
  appId: 5034
  userName: dingTalkSinkUser
  passWord: dingTalkPassWord
sinkConnectorConfig:
  connectorName: dingTalkSink
  # Please refer to: https://open.dingtalk.com/document/orgapp/the-robot-sends-a-group-message
  appKey: dingTalkAppKey
  appSecret: dingTalkAppSecret
  openConversationId: dingTalkOpenConversationId
  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.