87 lines
2.0 KiB
Java
87 lines
2.0 KiB
Java
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;
|
||
|
||
/**
|
||
* 告警规则模板对象 rm_alarm_rule_template
|
||
*
|
||
* @author gyt
|
||
* @date 2025-09-12
|
||
*/
|
||
public class RmAlarmRuleTemplate extends BaseEntity
|
||
{
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
/** 主键ID */
|
||
private Long id;
|
||
|
||
/** 规则名称 */
|
||
@Excel(name = "规则名称")
|
||
private String ruleName;
|
||
|
||
/** 监控指标键 */
|
||
@Excel(name = "监控指标键")
|
||
private String metricKey;
|
||
|
||
/** 资源类型(linux/switch) */
|
||
@Excel(name = "资源类型", readConverterExp = "l=inux/switch")
|
||
private String resourceType;
|
||
|
||
public void setId(Long id)
|
||
{
|
||
this.id = id;
|
||
}
|
||
|
||
public Long getId()
|
||
{
|
||
return id;
|
||
}
|
||
|
||
public void setRuleName(String ruleName)
|
||
{
|
||
this.ruleName = ruleName;
|
||
}
|
||
|
||
public String getRuleName()
|
||
{
|
||
return ruleName;
|
||
}
|
||
|
||
public void setMetricKey(String metricKey)
|
||
{
|
||
this.metricKey = metricKey;
|
||
}
|
||
|
||
public String getMetricKey()
|
||
{
|
||
return metricKey;
|
||
}
|
||
|
||
public void setResourceType(String resourceType)
|
||
{
|
||
this.resourceType = resourceType;
|
||
}
|
||
|
||
public String getResourceType()
|
||
{
|
||
return resourceType;
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||
.append("id", getId())
|
||
.append("ruleName", getRuleName())
|
||
.append("metricKey", getMetricKey())
|
||
.append("resourceType", getResourceType())
|
||
.append("createTime", getCreateTime())
|
||
.append("updateTime", getUpdateTime())
|
||
.append("createBy", getCreateBy())
|
||
.append("updateBy", getUpdateBy())
|
||
.toString();
|
||
}
|
||
}
|