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
The following commit(s) were added to refs/heads/main by this push:
new b809eb69 Slack Source: Expose Kamelet data type information (#1964)
b809eb69 is described below
commit b809eb69b2be586ec25bc78a8fc6ca3700117029
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Mar 25 10:21:05 2024 +0100
Slack Source: Expose Kamelet data type information (#1964)
Signed-off-by: Andrea Cosentino <[email protected]>
---
kamelets/slack-source.kamelet.yaml | 36 ++++++++++++++++++++++
.../resources/kamelets/slack-source.kamelet.yaml | 36 ++++++++++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/kamelets/slack-source.kamelet.yaml
b/kamelets/slack-source.kamelet.yaml
index 96c744ec..7fe8829e 100644
--- a/kamelets/slack-source.kamelet.yaml
+++ b/kamelets/slack-source.kamelet.yaml
@@ -60,6 +60,42 @@ spec:
description: Create exchanges in natural order (oldest to newest) or
not.
type: boolean
default: false
+ dataTypes:
+ out:
+ default: json
+ headers:
+ types:
+ json:
+ format: "application-json"
+ description: Json mapping of a Slack API Message
+ mediaType: application/json
+ cloudevents:
+ format: "slack:application-cloudevents"
+ description: |-
+ Output data type represents Azure Storage Blob get blob response
as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the
exchange with
+ respective data from the Azure container and its derived object.
+ 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.slack.consume"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the Slack App Id with
prefix "slack.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The Slack Channel name.
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
types:
out:
mediaType: application/json
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
index 96c744ec..7fe8829e 100644
---
a/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
+++
b/library/camel-kamelets/src/main/resources/kamelets/slack-source.kamelet.yaml
@@ -60,6 +60,42 @@ spec:
description: Create exchanges in natural order (oldest to newest) or
not.
type: boolean
default: false
+ dataTypes:
+ out:
+ default: json
+ headers:
+ types:
+ json:
+ format: "application-json"
+ description: Json mapping of a Slack API Message
+ mediaType: application/json
+ cloudevents:
+ format: "slack:application-cloudevents"
+ description: |-
+ Output data type represents Azure Storage Blob get blob response
as CloudEvent V1. The data type sets Camel specific CloudEvent headers on the
exchange with
+ respective data from the Azure container and its derived object.
+ 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.slack.consume"
+ type: string
+ CamelCloudEventSource:
+ title: CloudEvent Source
+ description: The event source. By default, the Slack App Id with
prefix "slack.".
+ type: string
+ CamelCloudEventSubject:
+ title: CloudEvent Subject
+ description: The event subject. The Slack Channel name.
+ type: string
+ CamelCloudEventTime:
+ title: CloudEvent Time
+ description: The exchange creation timestamp as event time.
+ type: string
types:
out:
mediaType: application/json