第 39 章 Message Timestamp Router Action

更新 topic 字段作为原始主题名称和记录的时间戳字段的功能。

39.1. 配置选项

下表总结了可用于 message-timestamp-router-action Kamelet 的配置选项:

属性名称描述类型默认示例

timestampKeys *

时间戳键

Timestamp 键的逗号分隔列表。时间戳取自第一个找到字段。

字符串

  

timestampFormat

时间戳格式

为与 java.text.SimpleDateFormat 的时间戳格式字符串。

字符串

"yyyyMMdd"

 

timestampKeyFormat

时间戳密钥格式

时间戳密钥的格式。可能的值有 'timestamp' 或任何与 java.text.SimpleDateFormat 兼容的时间戳的格式字符串。如果是 'timestamp',该字段将评估为自 1970 年以来的毫秒,比如 UNIX Timestamp。

字符串

"timestamp"

 

topicFormat

主题格式

分别包含 '$[topic]' 和 '$[timestamp]' 的字符串,作为主题和时间戳的占位符。

字符串

"topic-$[timestamp]"

 
注意

带有星号(*)标记的字段为必填。