@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user