Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Review Throttle Action" #1873

Merged
merged 3 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions kamelets/throttle-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ 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
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"
Expand All @@ -48,4 +53,5 @@ spec:
uri: kamelet:source
steps:
- throttle:
constant: "{{maxConcurrentRequests}}"
constant: "{{messages}}"
timePeriodMillis: "{{timePeriod}}"
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,18 @@ 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
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"
Expand All @@ -48,4 +53,5 @@ spec:
uri: kamelet:source
steps:
- throttle:
constant: "{{maxConcurrentRequests}}"
constant: "{{messages}}"
timePeriodMillis: "{{timePeriod}}"
Loading