package com.wgcloud.entity;
|
|
import java.util.Date;
|
|
/**
|
* @version v3.3
|
* @ClassName:CustomInfo.java
|
* @author: http://www.wgstart.com
|
* @date: 2022年9月16日
|
* @Description: 自定义监控项
|
* @Copyright: 2019-2022 wgcloud. All rights reserved.
|
*/
|
public class CustomInfo extends BaseEntity {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
|
/**
|
* host名称
|
*/
|
private String hostname;
|
|
/**
|
* 自定义监控项名称
|
*/
|
private String customName;
|
|
/**
|
* 自定义监控项名称执行的指令或脚本
|
*/
|
private String customShell;
|
|
|
/**
|
* 自定义监控项状态,1正常,2下线
|
*/
|
private String state;
|
|
/**
|
* 是否监控,1启用监控2停止监控
|
*/
|
private String active;
|
|
/**
|
* 告警表达式,为true告警,false不告警
|
*/
|
private String resultExp;
|
|
/**
|
* 自定义监控项值
|
*/
|
private String customValue;
|
|
/**
|
* 分组ID
|
*/
|
private String groupId;
|
|
//累积告警次数,页面显示用,数据库无此字段
|
private Integer warnCount;
|
|
//累积告警次数查询关键字,页面显示用,数据库无此字段
|
private String warnQueryWd;
|
|
//所属用户账号,页面显示用,数据库无此字段
|
private String account;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
public String getHostname() {
|
return hostname;
|
}
|
|
public void setHostname(String hostname) {
|
this.hostname = hostname;
|
}
|
|
public String getCustomName() {
|
return customName;
|
}
|
|
public void setCustomName(String customName) {
|
this.customName = customName;
|
}
|
|
public String getCustomShell() {
|
return customShell;
|
}
|
|
public void setCustomShell(String customShell) {
|
this.customShell = customShell;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getActive() {
|
return active;
|
}
|
|
public void setActive(String active) {
|
this.active = active;
|
}
|
|
public String getResultExp() {
|
return resultExp;
|
}
|
|
public void setResultExp(String resultExp) {
|
this.resultExp = resultExp;
|
}
|
|
public Integer getWarnCount() {
|
return warnCount;
|
}
|
|
public void setWarnCount(Integer warnCount) {
|
this.warnCount = warnCount;
|
}
|
|
public String getWarnQueryWd() {
|
return warnQueryWd;
|
}
|
|
public void setWarnQueryWd(String warnQueryWd) {
|
this.warnQueryWd = warnQueryWd;
|
}
|
|
public String getAccount() {
|
return account;
|
}
|
|
public void setAccount(String account) {
|
this.account = account;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getGroupId() {
|
return groupId;
|
}
|
|
public void setGroupId(String groupId) {
|
this.groupId = groupId;
|
}
|
|
public String getCustomValue() {
|
return customValue;
|
}
|
|
public void setCustomValue(String customValue) {
|
this.customValue = customValue;
|
}
|
}
|