Http
Http sink connector
Descriptionâ
Used to launch web hooks using data.
For example, if the data from upstream is [
age: 12, name: tyrantlucifer
], the body content is the following:{"age": 12, "name": "tyrantlucifer"}
Tips: Http sink only support post json
webhook and the data from source will be treated as body content in web hook.
Key featuresâ
Optionsâ
name | type | required | default value |
---|---|---|---|
url | String | Yes | - |
headers | Map | No | - |
params | Map | No | - |
retry | int | No | - |
retry_backoff_multiplier_ms | int | No | 100 |
retry_backoff_max_ms | int | No | 10000 |
common-options | no | - |
url [String]â
http request url
headers [Map]â
http headers
params [Map]â
http params
retry [int]â
The max retry times if request http return to IOException
retry_backoff_multiplier_ms [int]â
The retry-backoff times(millis) multiplier if request http failed
retry_backoff_max_ms [int]â
The maximum retry-backoff times(millis) if request http failed
common optionsâ
Sink plugin common parameters, please refer to Sink Common Options for details
Exampleâ
simple:
Http {
url = "http://localhost/test/webhook"
headers {
token = "9e32e859ef044462a257e1fc76730066"
}
}
Changelogâ
2.2.0-beta 2022-09-26â
- Add Http Sink Connector