Skip to content

Commit

Permalink
Review Throttle Action
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
  • Loading branch information
oscerd committed Jan 23, 2024
1 parent 44d23e5 commit c1e5a47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
14 changes: 4 additions & 10 deletions kamelets/throttle-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -53,5 +48,4 @@ spec:
uri: kamelet:source
steps:
- throttle:
constant: "{{messages}}"
timePeriodMillis: "{{timePeriod}}"
constant: "{{maxConcurrentRequests}}"
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -54,4 +49,3 @@ spec:
steps:
- throttle:
constant: "{{messages}}"
timePeriodMillis: "{{timePeriod}}"

0 comments on commit c1e5a47

Please sign in to comment.