From 5ab08876873d40908e034be609a70afe786362a7 Mon Sep 17 00:00:00 2001 From: firest Date: Sun, 23 Apr 2023 15:17:51 +0800 Subject: [PATCH] chore: add examples for RocketMQ template --- rel/i18n/emqx_ee_bridge_rocketmq.hocon | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rel/i18n/emqx_ee_bridge_rocketmq.hocon b/rel/i18n/emqx_ee_bridge_rocketmq.hocon index 2e33e6c07..0e5b64bb1 100644 --- a/rel/i18n/emqx_ee_bridge_rocketmq.hocon +++ b/rel/i18n/emqx_ee_bridge_rocketmq.hocon @@ -16,8 +16,14 @@ NOTE: if the bridge is used as a rule action, `local_topic` should be left empty template { desc { - en: """Template, the default value is empty. When this value is empty the whole message will be stored in the RocketMQ""" - zh: """模板, 默认为空,为空时将会将整个消息转发给 RocketMQ""" + en: """Template, the default value is empty. When this value is empty the whole message will be stored in the RocketMQ.
+ The template can be any valid string with placeholders, example:
+ - ${id}, ${username}, ${clientid}, ${timestamp}
+ - {\"id\" : ${id}, \"username\" : ${username}}""" + zh: """模板, 默认为空,为空时将会将整个消息转发给 RocketMQ。
+ 模板可以是任意带有占位符的合法字符串, 例如:
+ - ${id}, ${username}, ${clientid}, ${timestamp}
+ - {\"id\" : ${id}, \"username\" : ${username}}""" } label { en: "Template"