Red Hat Camel K is no longer supported.
As of June 30, 2025, Red Hat build of Camel K has reached End of Life. The suggested replacements is Red Hat build of Apache Camel. For details about moving, see the Camel K to Camel Quarkus migration guide.第 49 章 Message Timestamp Router Action
将 topic 字段更新为原始主题名称和记录的时间戳字段的功能。
49.1. 配置选项 复制链接链接已复制到粘贴板!
下表总结了 message-timestamp-router-action
Kamelet 的配置选项:
属性 | Name | 描述 | 类型 | 默认 | Example |
---|---|---|---|---|---|
timestampKeys * | 时间戳键 | Timestamp 键的逗号分隔列表。时间戳取自第一个 found 字段。 | 字符串 | ||
timestampFormat | 时间戳格式 | 与 java.text.SimpleDateFormat 兼容的时间戳格式字符串。 | 字符串 |
| |
timestampKeyFormat | 时间戳键格式 | 时间戳密钥的格式。可能的值有 'timestamp' 或任何与 java.text.SimpleDateFormat 兼容的时间戳格式字符串。如果 'timestamp' 字段从 1970 年起,将以毫秒的形式评估,因此作为 UNIX Timestamp。 | 字符串 |
| |
topicFormat | 主题格式 | 格式化字符串,可分别包含 '$[topic]' 和 '$timestamp]' 作为主题和时间戳的占位符。 | 字符串 |
|
带星号(*)标记的字段是必需的。