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
@@ -0,0 +1,316 @@
package com.ruoyi.rocketmq.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 系统其他信息监控数据对象 initial_other_system_monitor_data
*
* @author gyt
* @date 2025-09-23
*/
public class InitialOtherSystemMonitorData extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
/** 交换卷/文件的可用空间(字节)采集 */
@Excel(name = "交换卷/文件的可用空间", readConverterExp = "字=节")
private Long systemSwapSizeFreeCollect;
/** 可用交换空间百分比采集 */
@Excel(name = "可用交换空间百分比采集")
private BigDecimal systemSwapSizePercentCollect;
/** 内存利用率采集 */
@Excel(name = "内存利用率采集")
private BigDecimal memoryUtilizationCollect;
/** 可用内存采集 */
@Excel(name = "可用内存采集")
private Long memorySizeAvailableCollect;
/** 可用内存百分比采集 */
@Excel(name = "可用内存百分比采集")
private BigDecimal memorySizePercentCollect;
/** 总内存采集 */
@Excel(name = "总内存采集")
private Long memorySizeTotalCollect;
/** 操作系统采集 */
@Excel(name = "操作系统采集")
private String systemSwOsCollect;
/** 操作系统架构采集 */
@Excel(name = "操作系统架构采集")
private String systemSwArchCollect;
/** 最大进程数采集 */
@Excel(name = "最大进程数采集")
private Long kernelMaxprocCollect;
/** 正在运行的进程数采集 */
@Excel(name = "正在运行的进程数采集")
private Long procNumRunCollect;
/** 登录用户数采集 */
@Excel(name = "登录用户数采集")
private Long systemUsersNumCollect;
/** 硬盘总可用空间采集 */
@Excel(name = "硬盘总可用空间采集")
private Long systemDiskSizeTotalCollect;
/** 系统启动时间采集 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "系统启动时间采集", width = 30, dateFormat = "yyyy-MM-dd")
private Date systemBoottimeCollect;
/** 系统描述采集 */
@Excel(name = "系统描述采集")
private String systemUnameCollect;
/** 系统本地时间采集 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "系统本地时间采集", width = 30, dateFormat = "yyyy-MM-dd")
private Date systemLocaltimeCollect;
/** 系统正常运行时间采集 */
@Excel(name = "系统正常运行时间采集")
private Long systemUptimeCollect;
/** 进程数采集 */
@Excel(name = "进程数采集")
private Long procNumCollect;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
public void setSystemSwapSizeFreeCollect(Long systemSwapSizeFreeCollect)
{
this.systemSwapSizeFreeCollect = systemSwapSizeFreeCollect;
}
public Long getSystemSwapSizeFreeCollect()
{
return systemSwapSizeFreeCollect;
}
public void setSystemSwapSizePercentCollect(BigDecimal systemSwapSizePercentCollect)
{
this.systemSwapSizePercentCollect = systemSwapSizePercentCollect;
}
public BigDecimal getSystemSwapSizePercentCollect()
{
return systemSwapSizePercentCollect;
}
public void setMemoryUtilizationCollect(BigDecimal memoryUtilizationCollect)
{
this.memoryUtilizationCollect = memoryUtilizationCollect;
}
public BigDecimal getMemoryUtilizationCollect()
{
return memoryUtilizationCollect;
}
public void setMemorySizeAvailableCollect(Long memorySizeAvailableCollect)
{
this.memorySizeAvailableCollect = memorySizeAvailableCollect;
}
public Long getMemorySizeAvailableCollect()
{
return memorySizeAvailableCollect;
}
public void setMemorySizePercentCollect(BigDecimal memorySizePercentCollect)
{
this.memorySizePercentCollect = memorySizePercentCollect;
}
public BigDecimal getMemorySizePercentCollect()
{
return memorySizePercentCollect;
}
public void setMemorySizeTotalCollect(Long memorySizeTotalCollect)
{
this.memorySizeTotalCollect = memorySizeTotalCollect;
}
public Long getMemorySizeTotalCollect()
{
return memorySizeTotalCollect;
}
public void setSystemSwOsCollect(String systemSwOsCollect)
{
this.systemSwOsCollect = systemSwOsCollect;
}
public String getSystemSwOsCollect()
{
return systemSwOsCollect;
}
public void setSystemSwArchCollect(String systemSwArchCollect)
{
this.systemSwArchCollect = systemSwArchCollect;
}
public String getSystemSwArchCollect()
{
return systemSwArchCollect;
}
public void setKernelMaxprocCollect(Long kernelMaxprocCollect)
{
this.kernelMaxprocCollect = kernelMaxprocCollect;
}
public Long getKernelMaxprocCollect()
{
return kernelMaxprocCollect;
}
public void setProcNumRunCollect(Long procNumRunCollect)
{
this.procNumRunCollect = procNumRunCollect;
}
public Long getProcNumRunCollect()
{
return procNumRunCollect;
}
public void setSystemUsersNumCollect(Long systemUsersNumCollect)
{
this.systemUsersNumCollect = systemUsersNumCollect;
}
public Long getSystemUsersNumCollect()
{
return systemUsersNumCollect;
}
public void setSystemDiskSizeTotalCollect(Long systemDiskSizeTotalCollect)
{
this.systemDiskSizeTotalCollect = systemDiskSizeTotalCollect;
}
public Long getSystemDiskSizeTotalCollect()
{
return systemDiskSizeTotalCollect;
}
public void setSystemBoottimeCollect(Date systemBoottimeCollect)
{
this.systemBoottimeCollect = systemBoottimeCollect;
}
public Date getSystemBoottimeCollect()
{
return systemBoottimeCollect;
}
public void setSystemUnameCollect(String systemUnameCollect)
{
this.systemUnameCollect = systemUnameCollect;
}
public String getSystemUnameCollect()
{
return systemUnameCollect;
}
public void setSystemLocaltimeCollect(Date systemLocaltimeCollect)
{
this.systemLocaltimeCollect = systemLocaltimeCollect;
}
public Date getSystemLocaltimeCollect()
{
return systemLocaltimeCollect;
}
public void setSystemUptimeCollect(Long systemUptimeCollect)
{
this.systemUptimeCollect = systemUptimeCollect;
}
public Long getSystemUptimeCollect()
{
return systemUptimeCollect;
}
public void setProcNumCollect(Long procNumCollect)
{
this.procNumCollect = procNumCollect;
}
public Long getProcNumCollect()
{
return procNumCollect;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("clientId", getClientId())
.append("systemSwapSizeFreeCollect", getSystemSwapSizeFreeCollect())
.append("systemSwapSizePercentCollect", getSystemSwapSizePercentCollect())
.append("memoryUtilizationCollect", getMemoryUtilizationCollect())
.append("memorySizeAvailableCollect", getMemorySizeAvailableCollect())
.append("memorySizePercentCollect", getMemorySizePercentCollect())
.append("memorySizeTotalCollect", getMemorySizeTotalCollect())
.append("systemSwOsCollect", getSystemSwOsCollect())
.append("systemSwArchCollect", getSystemSwArchCollect())
.append("kernelMaxprocCollect", getKernelMaxprocCollect())
.append("procNumRunCollect", getProcNumRunCollect())
.append("systemUsersNumCollect", getSystemUsersNumCollect())
.append("systemDiskSizeTotalCollect", getSystemDiskSizeTotalCollect())
.append("systemBoottimeCollect", getSystemBoottimeCollect())
.append("systemUnameCollect", getSystemUnameCollect())
.append("systemLocaltimeCollect", getSystemLocaltimeCollect())
.append("systemUptimeCollect", getSystemUptimeCollect())
.append("procNumCollect", getProcNumCollect())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,101 @@
package com.ruoyi.rocketmq.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 风扇信息对象 initial_switch_fan_info
*
* @author gyt
* @date 2025-09-22
*/
public class InitialSwitchFanInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 风扇索引 */
@Excel(name = "风扇索引")
private String fanEntIndex;
/** 风扇名称 */
@Excel(name = "风扇名称")
private String fanName;
/** 风扇状态 */
@Excel(name = "风扇状态")
private String fanEntityFanState;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setFanEntIndex(String fanEntIndex)
{
this.fanEntIndex = fanEntIndex;
}
public String getFanEntIndex()
{
return fanEntIndex;
}
public void setFanName(String fanName)
{
this.fanName = fanName;
}
public String getFanName()
{
return fanName;
}
public void setFanEntityFanState(String fanEntityFanState)
{
this.fanEntityFanState = fanEntityFanState;
}
public String getFanEntityFanState()
{
return fanEntityFanState;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("fanEntIndex", getFanEntIndex())
.append("fanName", getFanName())
.append("fanEntityFanState", getFanEntityFanState())
.append("clientId", getClientId())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -1,5 +1,7 @@
package com.ruoyi.rocketmq.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
@@ -13,6 +15,7 @@ import java.math.BigDecimal;
* @date 2025-08-25
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class InitialSwitchInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
@@ -26,14 +29,19 @@ public class InitialSwitchInfo extends BaseEntity
private String clientId;
/** 名称 */
@JsonProperty("ifDescr")
private String name;
/** 接收流量 */
@JsonProperty("ifHCInOctets")
private BigDecimal inBytes;
/** 发送流量 */
@JsonProperty("ifHCOutOctets")
private BigDecimal outBytes;
/** 状态 */
@JsonProperty("ifOperStatus")
private String status;
/** 类型 */
@JsonProperty("ifType")
private String type;
/** 接收流量(bytes/s) */
private BigDecimal inSpeed;
@@ -41,6 +49,18 @@ public class InitialSwitchInfo extends BaseEntity
private BigDecimal outSpeed;
/** 交换机ip */
private String switchIp;
/** 端口配置速率(Mbps) */
private BigDecimal ifSpeed;
/** 入站丢包 */
private Integer ifInDiscards;
/** 出站丢包 */
private Integer ifOutDiscards;
/** 错误的入站数据包数量 */
private Integer ifInErrors;
/** 错误的出站数据包数量 */
private Integer ifOutErrors;
/** 端口索引 */
private Integer ifIndex;
}
@@ -53,4 +53,16 @@ public class InitialSwitchInfoTemp extends BaseEntity
private BigDecimal outSpeed;
/** 交换机ip */
private String switchIp;
/** 端口配置速率(Mbps) */
private BigDecimal ifSpeed;
/** 入站丢包 */
private Integer ifInDiscards;
/** 出站丢包 */
private Integer ifOutDiscards;
/** 错误的入站数据包数量 */
private Integer ifInErrors;
/** 错误的出站数据包数量 */
private Integer ifOutErrors;
/** 端口索引 */
private Integer ifIndex;
}
@@ -0,0 +1,147 @@
package com.ruoyi.rocketmq.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* MPU信息对象 initial_switch_mpu_info
*
* @author gyt
* @date 2025-09-22
*/
public class InitialSwitchMpuInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** MPU索引 */
@Excel(name = "MPU索引")
private String mpuEntIndex;
/** MPU名称 */
@Excel(name = "MPU名称")
private String mpuName;
/** MPU的CPU使用率(%) */
@Excel(name = "MPU的CPU使用率(%)")
private BigDecimal mpuEntityCpuUsage;
/** MPU的内存使用率(%) */
@Excel(name = "MPU的内存使用率(%)")
private BigDecimal mpuEntityMemUsage;
/** MPU的操作系统 */
@Excel(name = "MPU的操作系统")
private String mpuPhysicalSoftwareRev;
/** MPU的温度(℃) */
@Excel(name = "MPU的温度(℃)")
private BigDecimal mpuEntityTemperature;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setMpuEntIndex(String mpuEntIndex)
{
this.mpuEntIndex = mpuEntIndex;
}
public String getMpuEntIndex()
{
return mpuEntIndex;
}
public void setMpuName(String mpuName)
{
this.mpuName = mpuName;
}
public String getMpuName()
{
return mpuName;
}
public void setMpuEntityCpuUsage(BigDecimal mpuEntityCpuUsage)
{
this.mpuEntityCpuUsage = mpuEntityCpuUsage;
}
public BigDecimal getMpuEntityCpuUsage()
{
return mpuEntityCpuUsage;
}
public void setMpuEntityMemUsage(BigDecimal mpuEntityMemUsage)
{
this.mpuEntityMemUsage = mpuEntityMemUsage;
}
public BigDecimal getMpuEntityMemUsage()
{
return mpuEntityMemUsage;
}
public void setMpuPhysicalSoftwareRev(String mpuPhysicalSoftwareRev)
{
this.mpuPhysicalSoftwareRev = mpuPhysicalSoftwareRev;
}
public String getMpuPhysicalSoftwareRev()
{
return mpuPhysicalSoftwareRev;
}
public void setMpuEntityTemperature(BigDecimal mpuEntityTemperature)
{
this.mpuEntityTemperature = mpuEntityTemperature;
}
public BigDecimal getMpuEntityTemperature()
{
return mpuEntityTemperature;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("mpuEntIndex", getMpuEntIndex())
.append("mpuName", getMpuName())
.append("mpuEntityCpuUsage", getMpuEntityCpuUsage())
.append("mpuEntityMemUsage", getMpuEntityMemUsage())
.append("mpuPhysicalSoftwareRev", getMpuPhysicalSoftwareRev())
.append("mpuEntityTemperature", getMpuEntityTemperature())
.append("clientId", getClientId())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,147 @@
package com.ruoyi.rocketmq.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 光模块信息对象 initial_switch_optical_module
*
* @author gyt
* @date 2025-09-22
*/
public class InitialSwitchOpticalModule extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 光模块端口索引 */
@Excel(name = "光模块端口索引")
private String fiberEntIndex;
/** 光模块端口名称 */
@Excel(name = "光模块端口名称")
private String fiberPortName;
/** 光模块发送光衰阈值(dBm) */
@Excel(name = "光模块发送光衰阈值(dBm)")
private BigDecimal hwEntityOpticalTxLowThreshold;
/** 光模块接收光衰阈值(dBm) */
@Excel(name = "光模块接收光衰阈值(dBm)")
private BigDecimal hwEntityOpticalRxLowThreshold;
/** 光模块接收功率(dBm) */
@Excel(name = "光模块接收功率(dBm)")
private BigDecimal hwEntityOpticalRxPower;
/** 光模块发送功率(dBm) */
@Excel(name = "光模块发送功率(dBm)")
private BigDecimal hwEntityOpticalTxPower;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setFiberEntIndex(String fiberEntIndex)
{
this.fiberEntIndex = fiberEntIndex;
}
public String getFiberEntIndex()
{
return fiberEntIndex;
}
public void setFiberPortName(String fiberPortName)
{
this.fiberPortName = fiberPortName;
}
public String getFiberPortName()
{
return fiberPortName;
}
public void setHwEntityOpticalTxLowThreshold(BigDecimal hwEntityOpticalTxLowThreshold)
{
this.hwEntityOpticalTxLowThreshold = hwEntityOpticalTxLowThreshold;
}
public BigDecimal getHwEntityOpticalTxLowThreshold()
{
return hwEntityOpticalTxLowThreshold;
}
public void setHwEntityOpticalRxLowThreshold(BigDecimal hwEntityOpticalRxLowThreshold)
{
this.hwEntityOpticalRxLowThreshold = hwEntityOpticalRxLowThreshold;
}
public BigDecimal getHwEntityOpticalRxLowThreshold()
{
return hwEntityOpticalRxLowThreshold;
}
public void setHwEntityOpticalRxPower(BigDecimal hwEntityOpticalRxPower)
{
this.hwEntityOpticalRxPower = hwEntityOpticalRxPower;
}
public BigDecimal getHwEntityOpticalRxPower()
{
return hwEntityOpticalRxPower;
}
public void setHwEntityOpticalTxPower(BigDecimal hwEntityOpticalTxPower)
{
this.hwEntityOpticalTxPower = hwEntityOpticalTxPower;
}
public BigDecimal getHwEntityOpticalTxPower()
{
return hwEntityOpticalTxPower;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("fiberEntIndex", getFiberEntIndex())
.append("fiberPortName", getFiberPortName())
.append("hwEntityOpticalTxLowThreshold", getHwEntityOpticalTxLowThreshold())
.append("hwEntityOpticalRxLowThreshold", getHwEntityOpticalRxLowThreshold())
.append("hwEntityOpticalRxPower", getHwEntityOpticalRxPower())
.append("hwEntityOpticalTxPower", getHwEntityOpticalTxPower())
.append("clientId", getClientId())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,86 @@
package com.ruoyi.rocketmq.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 交换机系统其他信息采集数据对象 initial_switch_other_collect_data
*
* @author gyt
* @date 2025-09-23
*/
public class InitialSwitchOtherCollectData extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
/** 采集类型 */
@Excel(name = "采集类型")
private String collectType;
/** 采集值 */
@Excel(name = "采集值")
private String collectValue;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
public void setCollectType(String collectType)
{
this.collectType = collectType;
}
public String getCollectType()
{
return collectType;
}
public void setCollectValue(String collectValue)
{
this.collectValue = collectValue;
}
public String getCollectValue()
{
return collectValue;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("clientId", getClientId())
.append("collectType", getCollectType())
.append("collectValue", getCollectValue())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,131 @@
package com.ruoyi.rocketmq.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 电源信息对象 initial_switch_power_supply
*
* @author gyt
* @date 2025-09-22
*/
public class InitialSwitchPowerSupply extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 电源索引 */
@Excel(name = "电源索引")
private String pwrEntIndex;
/** 电源名称 */
@Excel(name = "电源名称")
private String pwrName;
/** 电源状态 */
@Excel(name = "电源状态")
private String pwrEntityPwrState;
/** 电源电流(mA) */
@Excel(name = "电源电流(mA)")
private Long pwrEntityPwrCurrent;
/** 电源电压(mV) */
@Excel(name = "电源电压(mV)")
private Long pwrEntityPwrVoltage;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPwrEntIndex(String pwrEntIndex)
{
this.pwrEntIndex = pwrEntIndex;
}
public String getPwrEntIndex()
{
return pwrEntIndex;
}
public void setPwrName(String pwrName)
{
this.pwrName = pwrName;
}
public String getPwrName()
{
return pwrName;
}
public void setPwrEntityPwrState(String pwrEntityPwrState)
{
this.pwrEntityPwrState = pwrEntityPwrState;
}
public String getPwrEntityPwrState()
{
return pwrEntityPwrState;
}
public void setPwrEntityPwrCurrent(Long pwrEntityPwrCurrent)
{
this.pwrEntityPwrCurrent = pwrEntityPwrCurrent;
}
public Long getPwrEntityPwrCurrent()
{
return pwrEntityPwrCurrent;
}
public void setPwrEntityPwrVoltage(Long pwrEntityPwrVoltage)
{
this.pwrEntityPwrVoltage = pwrEntityPwrVoltage;
}
public Long getPwrEntityPwrVoltage()
{
return pwrEntityPwrVoltage;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("pwrEntIndex", getPwrEntIndex())
.append("pwrName", getPwrName())
.append("pwrEntityPwrState", getPwrEntityPwrState())
.append("pwrEntityPwrCurrent", getPwrEntityPwrCurrent())
.append("pwrEntityPwrVoltage", getPwrEntityPwrVoltage())
.append("clientId", getClientId())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,86 @@
package com.ruoyi.rocketmq.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
/**
* 交换机系统其他信息采集数据对象 initial_system_other_collect_data
*
* @author gyt
* @date 2025-09-23
*/
public class InitialSystemOtherCollectData extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 客户端ID */
@Excel(name = "客户端ID")
private String clientId;
/** 采集类型 */
@Excel(name = "采集类型")
private String collectType;
/** 采集值 */
@Excel(name = "采集值")
private String collectValue;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setClientId(String clientId)
{
this.clientId = clientId;
}
public String getClientId()
{
return clientId;
}
public void setCollectType(String collectType)
{
this.collectType = collectType;
}
public String getCollectType()
{
return collectType;
}
public void setCollectValue(String collectValue)
{
this.collectValue = collectValue;
}
public String getCollectValue()
{
return collectValue;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("clientId", getClientId())
.append("collectType", getCollectType())
.append("collectValue", getCollectValue())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("updateBy", getUpdateBy())
.toString();
}
}
@@ -0,0 +1,80 @@
package com.ruoyi.rocketmq.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import java.util.Date;
/**
* 服务器脚本策略对象 rm_deployment_policy
*
* @author gyt
* @date 2025-09-15
*/
@Data
public class RmDeploymentPolicy extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 策略ID */
private Long id;
/** 策略名称 */
@Excel(name = "策略名称")
private String policyName;
/** 策略描述 */
@Excel(name = "策略描述")
private String description;
/** 关联资源组ID */
@Excel(name = "关联资源组ID")
private Long resourceGroupId;
/** 包含的设备ID列表(逗号分隔) */
private String includedDevicesId;
/** 包含设备 */
@Excel(name = "包含设备")
private String includedDevicesName;
/** 源文件地址格式 */
@Excel(name = "源文件地址格式")
private String sourceFilePathType;
/** 源文件路径 */
@Excel(name = "源文件路径")
private String sourceFilePath;
/** 目标目录 */
@Excel(name = "目标目录")
private String targetDirectory;
/** 命令执行内容 */
@Excel(name = "命令执行内容")
private String commandContent;
/** 0=立即执行,1=定时执行 */
@Excel(name = "执行方式", readConverterExp = "0=立即执行,1=定时执行")
private Integer executionMethod;
/** 定时执行时间 */
@Excel(name = "定时执行时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date scheduledTime;
/** 定时执行时间(时间戳秒) */
private Long policyTime;
/** 策略状态:0-未下发,1-已下发 */
@Excel(name = "策略状态:0-未下发,1-已下发")
private String policyStatus;
/** 策略下发时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "策略下发时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date deployTime;
/** 脚本类型 */
@Excel(name = "脚本类型")
private String scriptType;
}
@@ -3,7 +3,7 @@ package com.ruoyi.rocketmq.domain.vo;
import lombok.Data;
@Data
public class SwitchDataVo {
public class CollectDataVo {
/** 类型 */
private String type;
/** 数据 */
@@ -12,6 +12,12 @@ public class RspVo {
* 描述
*/
private String resMag;
/**
* 描述
*/
private String resMsg;
private String result;
/**
* 时间戳
*/
@@ -0,0 +1,54 @@
package com.ruoyi.rocketmq.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.Instant;
import java.util.List;
@Data
public class ScriptPolicyVo {
/**
* 策略名称
*/
private String policyName;
/**
* 文件
*/
private List<ScriptFile> files;
// 目标路径地址
private String filePath;
// 命令
private List<String> commands;
// 执行方式:0、立即执行;1、定时执行;
private int method;
// 执行方式为1、定时执行时必传-指定时间
private long policyTime;
// 时间戳
private long timestamp = Instant.now().getEpochSecond();
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public static class ScriptFile{
//文件类型:0、平台文件地址;1、外网HTTP(S)
private int fileType;
//文件类型为1、外网HTTP(S)时必传
private String fileUrl;
//文件类型为0、平台文件地址时必传(文件名)
private String fileName;
//文件类型为0、平台文件地址时必传(文件流)
private String fileData;
}
}