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
commit c1e5a47e403d07173aa192623fa2dfd4a64ba5b6 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Jan 23 11:58:57 2024 +0100 Review Throttle Action Signed-off-by: Andrea Cosentino <anco...@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}}"