Skip to content

Commit

Permalink
add more desc about operations (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy3993 authored May 14, 2024
1 parent 9bf37fb commit 7903a16
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion doc/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,28 @@ operator:对应Syncer的不同操作
curl -X POST -H "Content-Type: application/json" -d '{
"name": "job_name"
}' http://ccr_syncer_host:ccr_syncer_port/delete
```
```
- list_jobs
列出所有job名称
```bash
curl -X POST -H "Content-Type: application/json" -d '{}' http://ccr_syncer_host:ccr_syncer_port/list_jobs
```
- job_detail
展示job的详细信息
```bash
curl -X POST -H "Content-Type: application/json" -d '{
"name": "job_name"
}' http://ccr_syncer_host:ccr_syncer_port/job_detail
```
- job_progress
展示job的详细进度信息
```bash
curl -X POST -H "Content-Type: application/json" -d '{
"name": "job_name"
}' http://ccr_syncer_host:ccr_syncer_port/job_progress
```
- metrics
获取golang以及ccr job的metrics信息
```bash
curl http://ccr_syncer_host:ccr_syncer_port/metrics
```

0 comments on commit 7903a16

Please sign in to comment.