Skip to content

Commit

Permalink
fix(doc): escape {{ in doc
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Nov 17, 2023
1 parent cb33649 commit a1e303b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en_US/guide/sources/builtin/http_pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Key dynamic properties include:
- `PullTime`: The timestamp of the current pull time in int64 format.
- `LastPullTime`: The timestamp of the last pull time in int64 format.
- Properties from oAuth: The properties from the oAuth response body. For example, if access request return json
body `{"token": "xxxxxx"}`. Then you can use `{{.token}}` to get the token.
body `{"token": "xxxxxx"}`. Then you can use <span v-pre>`{{.token}}`</span> to get the token.

For HTTP services that allow time-based filtering, `PullTime` and `LastPullTime` can be harnessed for incremental data pulls. Depending on how the service accepts time parameters:

Expand Down
3 changes: 2 additions & 1 deletion docs/zh_CN/guide/sources/builtin/http_pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ OAuth 2.0 是一个授权协议,让 API 客户端有限度地访问网络服

- `PullTime`:本次拉取的 int64 格式时间戳。
- `LastPullTime`:上次拉取的 int64 格式时间戳。
- 来自 oAuth 的属性:oAuth 返回体的属性也可以使用。 例如,假设返回体为 `{"token": "xxxxxx"}`,则可通过 `{{.token}}` 访问
- 来自 oAuth 的属性:oAuth 返回体的属性也可以使用。 例如,假设返回体为 `{"token": "xxxxxx"}`
,则可通过 <span v-pre>`{{.token}}`</span> 访问
token 。

若目标 HTTP 服务支持过滤开始和结束时间,可以使用这两个属性来实现增量拉取。
Expand Down

0 comments on commit a1e303b

Please sign in to comment.