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/02/09 13:45:58 UTC

(camel-kamelets) branch revert-1848-1842 created (now 9d01b38c)

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

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


      at 9d01b38c Revert "Review Throttle Action"

This branch includes the following new commits:

     new d39d26fd Revert "Review Throttle Action"
     new 6b592491 Revert "Review Throttle Action"
     new 9d01b38c Revert "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: Revert "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 revert-1848-1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit d39d26fd7a94f415d8d8a044b11a8a297e666e9a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 9 14:45:54 2024 +0100

    Revert "Review Throttle Action"
    
    This reverts commit f9da804f8888fcde3184fb04dbd382169d40f43e.
---
 .../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 48986812..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
@@ -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:
-      - maxConcurrentRequests
+      - messages
     properties:
       maxConcurrentRequests:
         title: Max Concurrent Requests


(camel-kamelets) 03/03: Revert "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 revert-1848-1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 9d01b38c4ec4fef0e896ed771c88688ee86154d3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 9 14:45:54 2024 +0100

    Revert "Review Throttle Action"
    
    This reverts commit c1e5a47e403d07173aa192623fa2dfd4a64ba5b6.
---
 kamelets/throttle-action.kamelet.yaml                      | 14 ++++++++++----
 .../main/resources/kamelets/throttle-action.kamelet.yaml   | 12 +++++++++---
 2 files changed, 19 insertions(+), 7 deletions(-)

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


(camel-kamelets) 02/03: Revert "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 revert-1848-1842
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 6b59249167fdd3164659b6560d4251a482a4849a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 9 14:45:54 2024 +0100

    Revert "Review Throttle Action"
    
    This reverts commit b73a8851400e78dd1d09a5dc7ba1ddfee8fef439.
---
 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 48986812..a611e72e 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:
-      - maxConcurrentRequests
+      - messages
     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 a611e72e..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
@@ -48,4 +48,4 @@ spec:
       uri: kamelet:source
       steps:
       - throttle:
-          constant: "{{maxConcurrentRequests}}"
+          constant: "{{messages}}"