From c1e5a47e403d07173aa192623fa2dfd4a64ba5b6 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Tue, 23 Jan 2024 11:58:57 +0100 Subject: [PATCH] Review Throttle Action Signed-off-by: Andrea Cosentino --- kamelets/throttle-action.kamelet.yaml | 14 ++++---------- .../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 681c9c95a..a611e72ef 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 681c9c95a..0c109cdf9 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}}"