Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CosmosDB Source: Expose Kamelet data type information #1969

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions kamelets/azure-cosmosdb-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,44 @@ spec:
type: string
enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
default: "SHARED_ACCOUNT_KEY"
types:
dataTypes:
out:
mediaType: application/json
default: json
headers:
types:
json:
format: "application-json"
description: Json mapping of Change Feed records
mediaType: application/json
cloudevents:
format: "azure-cosmosdb:application-cloudevents"
description: |-
Data type transformer converts Azure CosmosDB Change Feed processor response to CloudEvent v1_0 data format. The data
type sets Camel specific CloudEvent headers with values extracted from Azure CosmosDB Change Feed processor response.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.azure.cosmosdb.changes"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source.
type: string
default: "org.apache.camel.event.azure.cosmosdb.changefeed"
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject.
type: string
default: "org.apache.camel.event.azure.cosmosdb.changefeed"
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:azure-cosmosdb"
- "camel:kamelet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,44 @@ spec:
type: string
enum: ["SHARED_ACCOUNT_KEY", "AZURE_IDENTITY"]
default: "SHARED_ACCOUNT_KEY"
types:
dataTypes:
out:
mediaType: application/json
default: json
headers:
types:
json:
format: "application-json"
description: Json mapping of Change Feed records
mediaType: application/json
cloudevents:
format: "azure-cosmosdb:application-cloudevents"
description: |-
Data type transformer converts Azure CosmosDB Change Feed processor response to CloudEvent v1_0 data format. The data
type sets Camel specific CloudEvent headers with values extracted from Azure CosmosDB Change Feed processor response.
headers:
CamelCloudEventID:
title: CloudEvent ID
description: The Camel exchange id set as event id
type: string
CamelCloudEventType:
title: CloudEvent Type
description: The event type
default: "org.apache.camel.event.azure.cosmosdb.changes"
type: string
CamelCloudEventSource:
title: CloudEvent Source
description: The event source.
type: string
default: "org.apache.camel.event.azure.cosmosdb.changefeed"
CamelCloudEventSubject:
title: CloudEvent Subject
description: The event subject.
type: string
default: "org.apache.camel.event.azure.cosmosdb.changefeed"
CamelCloudEventTime:
title: CloudEvent Time
description: The exchange creation timestamp as event time.
type: string
dependencies:
- "camel:azure-cosmosdb"
- "camel:kamelet"
Expand Down
Loading