This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 304d98379d3d06b0199083450032f8e3987b8216 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue May 18 11:40:15 2021 +0200 Regen catalog --- .../resources/kamelets/timestamp-router-action.kamelet.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml index fbe91de..5d55b7e 100644 --- a/library/camel-kamelets-catalog/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml +++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/timestamp-router-action.kamelet.yaml @@ -17,12 +17,17 @@ spec: title: Topic Format description: Format string which can contain '$[topic]' and '$[timestamp]' as placeholders for the topic and timestamp, respectively. type: string - default: "$[topic]-$[timestamp]" + default: "topic-$[timestamp]" timestampFormat: title: Timestamp Format description: Format string for the timestamp that is compatible with java.text.SimpleDateFormat. type: string default: "yyyyMMdd" + timestampHeaderName: + title: Timestamp Header Name + description: The name of the header containing a timestamp + type: string + default: "kafka.TIMESTAMP" type: object dependencies: - github:apache.camel-kamelets:camel-kamelets-utils:main-SNAPSHOT @@ -38,4 +43,7 @@ spec: - set-property: name: "timestampFormat" constant: "{{timestampFormat}}" + - set-property: + name: "timestampHeaderName" + constant: "{{timestampHeaderName}}" - bean: "org.apache.camel.kamelets.utils.transform.kafka.TimestampRouter"