Hisoka-X commented on code in PR #9292:
URL: https://github.com/apache/seatunnel/pull/9292#discussion_r2095583356
##########
docs/zh/connector-v2/sink/Http.md:
##########
@@ -42,6 +42,10 @@ import ChangeLog from '../changelog/connector-http.md';
| retry_backoff_max_ms | Int | 否 | 10000 | http请求失败,最大重试回退时间(毫秒)
|
| connect_timeout_ms | Int | 否 | 12000 | 连接超时设置,默认12s
|
| socket_timeout_ms | Int | 否 | 60000 | 套接字超时设置,默认为60s
|
+| array_mode | Boolean| 否 | false |
为true时将数据作为JSON数组发送,为false时作为单个JSON对象发送(默认) |
+| batch_size | Int | 否 | 1 |
在一个HTTP请求中发送的记录批量大小。仅在array_mode为true时有效 |
+| request_interval_ms | Int | 否 | 0 |
两次HTTP请求之间的间隔毫秒数,以避免请求过于频繁 |
+| format | String | 否 | json |
批量数据的格式。目前只支持"json",将以JSON数组形式发送数据 |
Review Comment:
```suggestion
```
##########
docs/zh/connector-v2/sink/Http.md:
##########
@@ -57,6 +61,22 @@ Http {
}
```
+### 带批处理的示例
+
+```hocon
+Http {
+ url = "http://localhost/test/webhook"
+ headers {
+ token = "9e32e859ef044462a257e1fc76730066"
+ Content-Type = "application/json"
+ }
+ array_mode = true
+ batch_size = 50
+ request_interval_ms = 500
+ format = "json"
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]