agent2.0版本数据适配,开发脚本策略接口

This commit is contained in:
gaoyutao
2025-09-23 18:21:05 +08:00
parent a9270027f4
commit d5f232e295
62 changed files with 5286 additions and 44 deletions
@@ -96,4 +96,16 @@ public class InitialSwitchInfoDetails extends BaseEntity
/** 交换机ip */
private String switchIp;
/** 端口配置速率(Mbps) */
private BigDecimal ifSpeed;
/** 入站丢包 */
private Integer ifInDiscards;
/** 出站丢包 */
private Integer ifOutDiscards;
/** 错误的入站数据包数量 */
private Integer ifInErrors;
/** 错误的出站数据包数量 */
private Integer ifOutErrors;
/** 端口索引 */
private Integer ifIndex;
}
@@ -131,6 +131,7 @@ public class RmResourceGroupServiceImpl implements IRmResourceGroupService
StringBuilder resultStr = new StringBuilder();
String[] idArray = ids.split(",");
for (String s : idArray) {
rmResourceGroup.setResourceIds(s);
int rows = rmResourceGroupMapper.exitsResourceById(rmResourceGroup);
if(rows > 0){
resultStr.append(s);