You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/09/19 12:40:45 UTC

[camel-kamelets] branch main updated (17b16c09 -> daabe8f4)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


    from 17b16c09 Polished
     new 0ae65eb6 Azure Eventhubs Sink - partition parameter
     new daabe8f4 Azure Eventhubs Sink - partition parameter

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 kamelets/azure-eventhubs-sink.kamelet.yaml                     | 10 +++++-----
 .../main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml  | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)


[camel-kamelets] 02/02: Azure Eventhubs Sink - partition parameter

Posted by ac...@apache.org.
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 daabe8f4f01430f534aaeca324dce39192472bbe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 19 14:34:00 2022 +0200

    Azure Eventhubs Sink - partition parameter
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
index 4873fa28..e5f15dc5 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/azure-eventhubs-sink.kamelet.yaml
@@ -33,7 +33,7 @@ spec:
     description: |-
       Send events to Azure Event Hubs.
 
-      The Kamelet checks for the `partition` / `ce-partition` header to determine how long an event remains in the Azure Storage queue. Use `PnDTnHnMn.nS.` format. For example, `PT20.345S` parses as 20.345 seconds and `P2D` parses as 2 days.
+      The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.
          
       A header is optional. If the header is not set, the partition is assigned by Event Hubs.
     required:
@@ -80,16 +80,16 @@ spec:
       steps:
       - choice:
           when:
-          - simple: "${header[partition]}"
+          - simple: "${header[partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[partition]}"
-          - simple: "${header[ce-partition]}"
+                simple: "${header[partition-id]}"
+          - simple: "${header[ce-partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[ce-partition]}"
+                simple: "${header[ce-partition-id]}"
       - to:
           uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
           parameters:


[camel-kamelets] 01/02: Azure Eventhubs Sink - partition parameter

Posted by ac...@apache.org.
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 0ae65eb62d59f446921337ecc34ae416e6b1298c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 19 14:32:48 2022 +0200

    Azure Eventhubs Sink - partition parameter
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/azure-eventhubs-sink.kamelet.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kamelets/azure-eventhubs-sink.kamelet.yaml b/kamelets/azure-eventhubs-sink.kamelet.yaml
index 4873fa28..e5f15dc5 100644
--- a/kamelets/azure-eventhubs-sink.kamelet.yaml
+++ b/kamelets/azure-eventhubs-sink.kamelet.yaml
@@ -33,7 +33,7 @@ spec:
     description: |-
       Send events to Azure Event Hubs.
 
-      The Kamelet checks for the `partition` / `ce-partition` header to determine how long an event remains in the Azure Storage queue. Use `PnDTnHnMn.nS.` format. For example, `PT20.345S` parses as 20.345 seconds and `P2D` parses as 2 days.
+      The Kamelet checks for the `partition-id` / `ce-partition-id` header which is an identifier of the Event Hub partition that the event will be sent to. If the identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an available partition.
          
       A header is optional. If the header is not set, the partition is assigned by Event Hubs.
     required:
@@ -80,16 +80,16 @@ spec:
       steps:
       - choice:
           when:
-          - simple: "${header[partition]}"
+          - simple: "${header[partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[partition]}"
-          - simple: "${header[ce-partition]}"
+                simple: "${header[partition-id]}"
+          - simple: "${header[ce-partition-id]}"
             steps:
             - set-header:
                 name: CamelAzureEventHubsPartitionId
-                simple: "${header[ce-partition]}"
+                simple: "${header[ce-partition-id]}"
       - to:
           uri: "azure-eventhubs://{{namespaceName}}/{{eventhubName}}"
           parameters: