!3 feat: http采集功能中增加post的body和content-type

* 增加http post内容
This commit is contained in:
random-chat
2022-02-12 08:58:49 +00:00
committed by tomsun28
parent 5556ec1d0c
commit ef0ba111cc
7 changed files with 80 additions and 1 deletions

View File

@@ -169,6 +169,7 @@ public class MonitorServiceImpl implements MonitorService {
}
param.setType(CommonConstants.PARAM_TYPE_NUMBER);
break;
case "textarea":
case "text":
Short limit = paramDefine.getLimit();
if (limit != null) {

View File

@@ -20,6 +20,10 @@ configmap:
type: 1
- key: password
type: 2
- key: contentType
type: 1
- key: payload
type: 1
# 指标组列表
metrics:
# 第一个监控指标组 cpu
@@ -48,6 +52,10 @@ metrics:
method: ^_^method^_^
# 是否启用ssl/tls,即是http还是https,默认false
ssl: ^_^ssl^_^
payload: ^_^payload^_^
# 请求头内容
headers:
content-type: ^_^contentType^_^
# 认证
authorization:
# 认证方式: Basic Auth, Digest Auth, Bearer Token

View File

@@ -37,6 +37,10 @@ param:
value: PUT
- label: DELETE请求
value: DELETE
- field: contentType
name: Content-Type
type: text
required: false
- field: username
name: 用户名
type: text
@@ -52,3 +56,7 @@ param:
# 当type为boolean时,前端用switch展示开关
type: boolean
required: true
- field: payload
name: 请求BODY
type: textarea
required: false