Files
saas-houduan/ruoyi-rocketmq/src/main/java/com/ruoyi/rocketmq/domain/RmAlarmRuleTemplate.java

87 lines
2.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}