Skip to content

Commit

Permalink
Azure Eventhubs Sink - partition parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Sep 19, 2022
1 parent 0ae65eb commit daabe8f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit daabe8f

Please sign in to comment.