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 2024/03/25 09:18:02 UTC
(camel-kamelets) 01/01: Slack Source: Expose Kamelet data type information
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 1945
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 4c17ddb1b7966683d89251349d8097ed8df14207
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 25 10:17:41 2024 +0100
Slack Source: Expose Kamelet data type information
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
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