summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhandingkang <[email protected]>2024-05-29 19:03:22 +0800
committerhandingkang <[email protected]>2024-05-29 19:03:22 +0800
commited9fbe4239ddd3b9994985e48772c2e3535bbfeb (patch)
tree92702121bd64f3c8c0f4d747a096801589ca0f5d
parentbca9c56241ac8c489e5e840ba6e14438683040f7 (diff)
1. 注释修改
2. target/delay接口参数定义
-rw-r--r--server/apps/agentcomm.py2
-rw-r--r--server/apps/target.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/apps/agentcomm.py b/server/apps/agentcomm.py
index 34705e2..c65ac12 100644
--- a/server/apps/agentcomm.py
+++ b/server/apps/agentcomm.py
@@ -148,7 +148,7 @@ def task_ret(json_data):
task_ret 代理输出信息接收
Arguments:
- json_data -- 请求中的json内容,必须包含"id"、"taskpolicy"、"level"和"info"两个keyword
+ json_data -- 请求中的json内容,必须包含"id"、"taskpolicy"、"level"和"info"四个keyword
Returns:
"ok" -- 成功执行
diff --git a/server/apps/target.py b/server/apps/target.py
index 5e51562..a7460a7 100644
--- a/server/apps/target.py
+++ b/server/apps/target.py
@@ -103,7 +103,7 @@ def get_nodes(query_data):
@bp.get("/delay")
@bp.doc("获取每个节点的时延数据", "type参数为{icmp,dns,tcp}中的一个")
@bp.input({
- "ip": IP(required=True),
+ "target": IP(required=True),
"taskid": String(required=True),
"type": String(required=True, validate=OneOf(['icmp', 'dns', 'tcp']))}, location="query")
@bp.output(DelayOut)