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 2021/11/19 09:18:43 UTC
[camel-kamelets] 01/07: Add Throttle Action Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch throttle-action
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 242d1a27b6e24a845d7be0d8db490cc411d7147b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 19 09:48:50 2021 +0100
Add Throttle Action Kamelet
---
throttle-action.kamelet.yaml | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/throttle-action.kamelet.yaml b/throttle-action.kamelet.yaml
new file mode 100644
index 0000000..41be441
--- /dev/null
+++ b/throttle-action.kamelet.yaml
@@ -0,0 +1,41 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+ name: throttle-action
+ labels:
+ camel.apache.org/kamelet.type: "action"
+ annotations:
+ camel.apache.org/kamelet.support.level: "Preview"
+ camel.apache.org/catalog.version: "main-SNAPSHOT"
+ camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+ camel.apache.org/provider: "Apache Software Foundation"
+ camel.apache.org/kamelet.group: "Actions"
+spec:
+ definition:
+ title: "Throttle Action"
+ description: "The Throttl action allows to ensure that a specific sink does not get overloaded."
+ required:
+ - messages
+ - timePeriod
+ properties:
+ messages:
+ title: Messages Number
+ description: The number of messages to send in the time period set
+ type: int
+ example: 10
+ timePeriod:
+ title: Time Period
+ description: Sets the time period during which the maximum request count is valid for, in milliseconds
+ type: string
+ default: "1000"
+ type: object
+ dependencies:
+ - "camel:core"
+ - "camel:kamelet"
+ flow:
+ from:
+ uri: kamelet:source
+ steps:
+ - throttle:
+ constant: "{{messages}}"
+ timePeriodMillis: "{{timePeriod}}"