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:34:45 UTC
[camel-kamelets] branch fix-1005 created (now 077839f5)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch fix-1005
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
at 077839f5 Azure Eventhubs Sink - partition parameter
This branch includes the following new commits:
new e6243729 Azure Eventhubs Sink - partition parameter
new 077839f5 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.
[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 fix-1005
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 077839f5ec2b94f57ffb81e6de77c8b1b7a6facd
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 fix-1005
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e62437292e14960ab8d6626946874ae722ba9fa8
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: