Skip to content

Commit

Permalink
Modify dependency detection document
Browse files Browse the repository at this point in the history
  • Loading branch information
柯风 committed Jun 2, 2020
1 parent f5b2f3a commit 66e28e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions doc/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,25 @@ type ContentNode struct {
### 调用示例
#### curl
```shell script
curl --location --request POST 'http://127.0.0.1:60814/api/agent/check' \
curl --location --request POST 'http://ip:port/api/v1/agent/check' \
--header 'Content-Type: application/json' \
--data-raw '{
"check_datas":[
{
"type":"mysql",
"data":"{\"dsn\":\"user:pwd@tcp(127.0.0.1:3306)/mark?charset=utf8&parseTime=True&loc=Local\"}"
"data":"{\"dsn\":\"user:pwd@tcp(ip:port)/xxx?charset=utf8&parseTime=True&loc=Local\"}"
},
{
"type":"redis",
"data":"{\"addr\":\"127.0.0.1:6740\"}"
"data":"{\"addr\":\"ip:port\"}"
},
{
"type":"http",
"data":"{\"http\":\"http://10.117.22.50:60814/api/agent/config\",\"method\":\"get\",\"timeout\":3}"
"data":"{\"http\":\"http://ip:port/xxx\",\"method\":\"get\",\"timeout\":3}"
},
{
"type":"tcp",
"data":"{\"addr\":\"127.0.0.1:8000\",\"network\":\"tcp\"}"
"data":"{\"addr\":\"ip:port\",\"network\":\"tcp\"}"
}
]
}'
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (eng *Engine) serveHTTP() error {
v1Group := s.Group("/api/v1")
v1Group.GET("/agent/:target", eng.getAppConfig) // get app config
v1Group.GET("/agent/config", eng.listenConfig) // listenConfig
v1Group.GET("/api/agent/check", eng.agentCheck) // 加入依赖探活检测
v1Group.POST("/agent/check", eng.agentCheck) // 加入依赖探活检测
v1Group.POST("/conf/command_line/status", eng.confStatus)

v1Group.GET("/agent/rawKey/getConfig", eng.getRawAppConfig) // 根据原生key获取配置信息
Expand Down
Binary file modified static/images/healthcheck/check.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 66e28e4

Please sign in to comment.