You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en_US/guide/sources/builtin/http_pull.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ default:
38
38
headers:
39
39
Accept: application/json
40
40
# how to check the response status, by status code or by body
41
+
states:
42
+
# state_key: state_value
41
43
responseType: code
42
44
# # Get token
43
45
# oAuth:
@@ -82,6 +84,7 @@ Use can specify the global HTTP pull settings here. The configuration items spec
82
84
- `body`: The body of request, such as `'{"data": "data", "method": 1}'`
83
85
- `bodyType`: Body type, it could be none|text|json|html|xml|javascript|format.
84
86
- `headers`: The HTTP request headers that you want to send along with the HTTP request.
87
+
- `states`: The status of httppull, can update the url by rendering.
85
88
- `responseType`: Define how to parse the HTTP response. There are two types defined:
86
89
- `code`: To check the response status from the HTTP status code.
87
90
- `body`: To check the response status from the response body. The body must be "application/json" content type and contains a "code" field.
@@ -131,6 +134,12 @@ The following configurations are designed under the assumption that the authenti
131
134
132
135
`incremental`: If it's set to `true`, then will compare with the last result; If the responses of two requests are the same, then will skip sending out the result.
133
136
137
+
#### State Update
138
+
139
+
State updates are dynamically updated at runtime. When creating the http_pull source, you can specify the initial state. The state can currently be rendered in the HTTP request URL. The format for these properties is based on the [data template](../../sinks/data_template.md) syntax.
140
+
141
+
State can also be updated based on the results of the http_pull result. When QOS is set to 1, the state will be periodically flushed to disk and loaded after the next boot.
142
+
134
143
#### Dynamic Properties
135
144
136
145
Dynamic properties adapt in real time and can be employed to customize the HTTP request's URL, body, and header. The format for these properties is based on the [data template](../../sinks/data_template.md) syntax.
0 commit comments