1、优化tcpdump解析速度。
2、补充tcpdump晚8点默认策略下发。 3、服务器管理列表增加出省流量占比列。
This commit is contained in:
+10
-4
@@ -3,10 +3,7 @@ package com.tongran.system.api;
|
||||
import com.tongran.common.core.constant.SecurityConstants;
|
||||
import com.tongran.common.core.constant.ServiceNameConstants;
|
||||
import com.tongran.common.core.domain.R;
|
||||
import com.tongran.system.api.domain.RmAlarmRecordRemote;
|
||||
import com.tongran.system.api.domain.RmDeployScriptRemote;
|
||||
import com.tongran.system.api.domain.RmMonitorPolicyRemote;
|
||||
import com.tongran.system.api.domain.RmNetworkInterfaceRemote;
|
||||
import com.tongran.system.api.domain.*;
|
||||
import com.tongran.system.api.factory.RemoteRocketMqFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -106,4 +103,13 @@ public interface RemoteRocketMqService {
|
||||
*/
|
||||
@PostMapping("/networkInterfaceChild/innerGetChildList")
|
||||
public R<List<RmNetworkInterfaceRemote>> innerGetChildList(@RequestBody RmNetworkInterfaceRemote rmNetworkInterfaceRemote, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
/**
|
||||
* 下发TCPDUMP默认策略
|
||||
* @param rmTcpdumpConfigRemote
|
||||
* @param source
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/rmTcpdumpConfig/innerInsertRmTcpdumpConfig")
|
||||
public R<Integer> innerInsertRmTcpdumpConfig(@RequestBody RmTcpdumpConfigRemote rmTcpdumpConfigRemote, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
}
|
||||
|
||||
+3
@@ -5,6 +5,7 @@ import com.tongran.common.core.annotation.Excel;
|
||||
import com.tongran.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@@ -186,5 +187,7 @@ public class RmResourceRegistrationRemote extends BaseEntity
|
||||
private String frpcRemotePort;
|
||||
/** FRPC服务器地址 */
|
||||
private String frpcServerAddr;
|
||||
/** 出省流量占比 */
|
||||
private BigDecimal outboundRate;
|
||||
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.tongran.system.api.domain;
|
||||
|
||||
import com.tongran.common.core.annotation.Excel;
|
||||
import com.tongran.common.core.web.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* tcpdump探测策略对象 rm_tcpdump_config
|
||||
*
|
||||
* @author tongran
|
||||
* @date 2026-01-21
|
||||
*/
|
||||
@Data
|
||||
public class RmTcpdumpConfigRemote extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 客户端ID */
|
||||
@Excel(name = "客户端ID")
|
||||
private String clientId;
|
||||
|
||||
/** 开启探测(0:否,1:是) */
|
||||
@Excel(name = "开启探测(0:否,1:是)")
|
||||
private Integer detectFlag;
|
||||
|
||||
/** 探测频率 */
|
||||
@Excel(name = "探测频率")
|
||||
private String frequency;
|
||||
|
||||
/** 探测时间列表(多个时间用,分隔) */
|
||||
@Excel(name = "探测时间列表(多个时间用,分隔)")
|
||||
private String detectTimes;
|
||||
|
||||
private String clientIds;
|
||||
|
||||
}
|
||||
+6
-4
@@ -2,10 +2,7 @@ package com.tongran.system.api.factory;
|
||||
|
||||
import com.tongran.common.core.domain.R;
|
||||
import com.tongran.system.api.RemoteRocketMqService;
|
||||
import com.tongran.system.api.domain.RmAlarmRecordRemote;
|
||||
import com.tongran.system.api.domain.RmDeployScriptRemote;
|
||||
import com.tongran.system.api.domain.RmMonitorPolicyRemote;
|
||||
import com.tongran.system.api.domain.RmNetworkInterfaceRemote;
|
||||
import com.tongran.system.api.domain.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
@@ -88,6 +85,11 @@ public class RemoteRocketMqFallbackFactory implements FallbackFactory<RemoteRock
|
||||
public R<List<RmNetworkInterfaceRemote>> innerGetChildList(RmNetworkInterfaceRemote rmNetworkInterfaceRemote, String source) {
|
||||
return R.fail(throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Integer> innerInsertRmTcpdumpConfig(RmTcpdumpConfigRemote rmTcpdumpConfigRemote, String source) {
|
||||
return R.fail(throwable.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user