[manager]调整API监控类型参数位置
This commit is contained in:
@@ -299,8 +299,6 @@ public class HttpCollectImpl extends AbstractCollect {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String contentType = null;
|
|
||||||
|
|
||||||
// params
|
// params
|
||||||
Map<String, String> params = httpProtocol.getParams();
|
Map<String, String> params = httpProtocol.getParams();
|
||||||
if (params != null && !params.isEmpty()) {
|
if (params != null && !params.isEmpty()) {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package com.usthe.common.entity.job;
|
|||||||
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.google.gson.Gson;
|
|
||||||
import com.usthe.common.entity.message.CollectRep;
|
import com.usthe.common.entity.message.CollectRep;
|
||||||
|
import com.usthe.common.util.GsonUtil;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -182,10 +182,9 @@ public class Job {
|
|||||||
responseDataTemp.add(metricsData);
|
responseDataTemp.add(metricsData);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Gson GSON = new Gson();
|
@Override
|
||||||
|
public Job clone() {
|
||||||
public Job clone(){
|
|
||||||
// 深度克隆
|
// 深度克隆
|
||||||
return GSON.fromJson(GSON.toJsonTree(this), Job.class);
|
return GsonUtil.fromJson(GsonUtil.toJson(this), Job.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ param:
|
|||||||
# 当type为number时,用range表示范围
|
# 当type为number时,用range表示范围
|
||||||
range: '[0,65535]'
|
range: '[0,65535]'
|
||||||
required: true
|
required: true
|
||||||
|
defaultValue: 80
|
||||||
- field: uri
|
- field: uri
|
||||||
name: 相对路径
|
name: 相对路径
|
||||||
type: text
|
type: text
|
||||||
@@ -37,10 +38,11 @@ param:
|
|||||||
value: PUT
|
value: PUT
|
||||||
- label: DELETE请求
|
- label: DELETE请求
|
||||||
value: DELETE
|
value: DELETE
|
||||||
- field: contentType
|
- field: ssl
|
||||||
name: Content-Type
|
name: 启用HTTPS
|
||||||
type: text
|
# 当type为boolean时,前端用switch展示开关
|
||||||
required: false
|
type: boolean
|
||||||
|
required: true
|
||||||
- field: username
|
- field: username
|
||||||
name: 用户名
|
name: 用户名
|
||||||
type: text
|
type: text
|
||||||
@@ -51,12 +53,13 @@ param:
|
|||||||
name: 密码
|
name: 密码
|
||||||
type: password
|
type: password
|
||||||
required: false
|
required: false
|
||||||
- field: ssl
|
- field: contentType
|
||||||
name: 启用HTTPS
|
name: Content-Type
|
||||||
# 当type为boolean时,前端用switch展示开关
|
type: text
|
||||||
type: boolean
|
placeholder: '请求BODY资源类型'
|
||||||
required: true
|
required: false
|
||||||
- field: payload
|
- field: payload
|
||||||
name: 请求BODY
|
name: 请求BODY
|
||||||
type: textarea
|
type: textarea
|
||||||
|
placeholder: 'POST PUT请求时有效'
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
Reference in New Issue
Block a user