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/01/23 11:02:56 UTC

(camel-kamelets) branch 1842 created (now 99beb5d5)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch 1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 99beb5d5 Review Throttle Action

This branch includes the following new commits:

     new 61bbc282 Review Throttle Action
     new 26ec25e7 Review Throttle Action
     new 99beb5d5 Review Throttle Action

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-kamelets) 01/03: Review Throttle Action

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 61bbc28249b130c5fbf707a3b785260eb80c4c2f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 23 11:58:57 2024 +0100

    Review Throttle Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/throttle-action.kamelet.yaml                      | 14 ++++----------
 .../main/resources/kamelets/throttle-action.kamelet.yaml   | 12 +++---------
 2 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/kamelets/throttle-action.kamelet.yaml b/kamelets/throttle-action.kamelet.yaml
index 681c9c95..a611e72e 100644
--- a/kamelets/throttle-action.kamelet.yaml
+++ b/kamelets/throttle-action.kamelet.yaml
@@ -34,16 +34,11 @@ spec:
     required:
       - messages
     properties:
-      messages:
-        title: Messages Number
-        description: The number of messages to send in the time period set
+      maxConcurrentRequests:
+        title: Max Concurrent Requests
+        description: The number of concurrent requests
         type: integer
         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"
@@ -53,5 +48,4 @@ spec:
       uri: kamelet:source
       steps:
       - throttle:
-          constant: "{{messages}}"
-          timePeriodMillis: "{{timePeriod}}"
+          constant: "{{maxConcurrentRequests}}"
diff --git a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
index 681c9c95..0c109cdf 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
@@ -34,16 +34,11 @@ spec:
     required:
       - messages
     properties:
-      messages:
-        title: Messages Number
-        description: The number of messages to send in the time period set
+      maxConcurrentRequests:
+        title: Max Concurrent Requests
+        description: The number of concurrent requests
         type: integer
         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"
@@ -54,4 +49,3 @@ spec:
       steps:
       - throttle:
           constant: "{{messages}}"
-          timePeriodMillis: "{{timePeriod}}"


(camel-kamelets) 02/03: Review Throttle Action

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 26ec25e74da5a48c413e5f0feb3d7a98a5379909
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 23 12:01:20 2024 +0100

    Review Throttle Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/throttle-action.kamelet.yaml                                   | 2 +-
 .../src/main/resources/kamelets/throttle-action.kamelet.yaml            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kamelets/throttle-action.kamelet.yaml b/kamelets/throttle-action.kamelet.yaml
index a611e72e..48986812 100644
--- a/kamelets/throttle-action.kamelet.yaml
+++ b/kamelets/throttle-action.kamelet.yaml
@@ -32,7 +32,7 @@ spec:
     title: "Throttle Action"
     description: "The Throttle action allows you to ensure that a specific sink does not get overloaded."
     required:
-      - messages
+      - maxConcurrentRequests
     properties:
       maxConcurrentRequests:
         title: Max Concurrent Requests
diff --git a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
index 0c109cdf..a611e72e 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
@@ -48,4 +48,4 @@ spec:
       uri: kamelet:source
       steps:
       - throttle:
-          constant: "{{messages}}"
+          constant: "{{maxConcurrentRequests}}"


(camel-kamelets) 03/03: Review Throttle Action

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 99beb5d5119371ca1056994df466650ccd069d6b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 23 12:02:13 2024 +0100

    Review Throttle Action
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/resources/kamelets/throttle-action.kamelet.yaml            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
index a611e72e..48986812 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/throttle-action.kamelet.yaml
@@ -32,7 +32,7 @@ spec:
     title: "Throttle Action"
     description: "The Throttle action allows you to ensure that a specific sink does not get overloaded."
     required:
-      - messages
+      - maxConcurrentRequests
     properties:
       maxConcurrentRequests:
         title: Max Concurrent Requests