-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add ping doc for source/sink (#2674)
Signed-off-by: yisaer <[email protected]>
- Loading branch information
Showing
22 changed files
with
139 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
# Manage websocket connection | ||
# Manage connection | ||
|
||
## Connectivity check | ||
|
||
Check eKuiper connection connectivity via API | ||
|
||
### sink connection check | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sinks/connection/{sink} | ||
{ | ||
"configuration": "xxxx" | ||
} | ||
``` | ||
|
||
The sink-side connection check will check the connectivity of the connection based on the incoming sinkType and configuration. Take mysql Sink as an example: | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sinks/connection/sql | ||
{ | ||
"url": "mysql://[email protected]:4000/test", | ||
"table": "test", | ||
"fields": ["a","b","c"] | ||
} | ||
``` | ||
|
||
### Source side connection check | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sources/connection/{source} | ||
{ | ||
"configuration": "xxxx" | ||
} | ||
``` | ||
|
||
The source-side connection check will check the connectivity of the connection based on the incoming sourceType and configuration. Take mysql Source as an example: | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sources/connection/sql | ||
{ | ||
"url": "mysql://[email protected]:4000/test", | ||
} | ||
``` | ||
|
||
## Manage websocket connection | ||
|
||
Manage websocket endpoint connection in eKuiper through REST API | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,52 @@ | ||
# websocket 连接管理 | ||
# 连接管理 | ||
|
||
## 连通性检查 | ||
|
||
通过 API 检查 eKuiper 连接的连通性 | ||
|
||
### sink 端连接检查 | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sinks/connection/{sink} | ||
{ | ||
"configuration": "xxxx" | ||
} | ||
``` | ||
|
||
sink 端连接检查会根据传入的 sinkType 和配置来检查连接的连通性,以 mysql Sink 为例: | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sinks/connection/sql | ||
{ | ||
"url": "mysql://[email protected]:4000/test", | ||
"table": "test", | ||
"fields": ["a","b","c"] | ||
} | ||
``` | ||
|
||
### source 端连接检查 | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sources/connection/{source} | ||
{ | ||
"configuration": "xxxx" | ||
} | ||
``` | ||
|
||
source 端连接检查会根据传入的 sourceType 和配置来检查连接的连通性,以 mysql Source 为例: | ||
|
||
```shell | ||
POST http://localhost:9081/metadata/sources/connection/sql | ||
{ | ||
"url": "mysql://[email protected]:4000/test", | ||
} | ||
``` | ||
|
||
## websocket 连接管理 | ||
|
||
通过 API 管理 eKuiper websocket 的连接 | ||
|
||
## 创建 websocket endpoint | ||
### 创建 websocket endpoint | ||
|
||
```shell | ||
POST http://localhost:9081/connection/websocket | ||
|
@@ -16,7 +60,7 @@ POST http://localhost:9081/connection/websocket | |
} | ||
``` | ||
|
||
## 删除 websocket endpoint | ||
### 删除 websocket endpoint | ||
|
||
```shell | ||
DELETE http://localhost:9081/connection/websocket | ||
|
@@ -30,7 +74,7 @@ DELETE http://localhost:9081/connection/websocket | |
} | ||
``` | ||
|
||
## 查看 websocket endpoint | ||
### 查看 websocket endpoint | ||
|
||
```shell | ||
GET http://localhost:9081/connection/websocket | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters