This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-nmsserver/src/com/nms/server/bean/AlarmInfo.java
2018-09-27 16:17:06 +08:00

198 lines
4.1 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.nms.server.bean;
/**
* 告警信息对象
*
*/
public class AlarmInfo {
/**
* 告警设置id
*/
private Long id;
/**
* 监测设置ID
*/
private Long setInfoId;
/**
* 监测类型名称cpu...
*/
private String checkType;
/**
* 进程标识
*/
private String processIden;
/**
* 字段表字段Id
*/
private Long metadataId;
/**
* 字段序号
*/
private Integer showNum;
/**
* 字段描述
*/
private String filedCommonts;
/**
* 报警状态
*/
private String policeState;
/**
* 报警值
*/
private String policeValue;
/**
* 报警单位
*/
private String policeUnit;
/**
* 报警比较符针对number型数据>、<、>=、<=、= 针对字符串类型数据equal、 include、exclude
*/
private String policeSysmbols;
/**
* 报警等级
*/
private Integer policeLevel;
/**
* 报警紧急标示告警 (是否紧急 0紧急 1非紧急 默认为1
*/
private Integer policeEmergent;
/**
* 设置告警时指定多个标识符如多个盘符、多个CPU、多个网卡如硬盘使用率所有盘存在一个盘使用率超过告警值则告警all所有盘总的使用率超过告警值则告警指定多个盘符指定盘存在一个盘使用率超过告警值则告警
*/
private String marker;
/**
* 标识符对应字段在metadata表中的id
*/
private Integer markerFiledId;;
/**
* 标识符对应字段在metadata表中的showNum
*/
private Integer markerFiledShowNum;
public Long getSetInfoId() {
return setInfoId;
}
public void setSetInfoId(Long setInfoId) {
this.setInfoId = setInfoId;
}
public Long getMetadataId() {
return metadataId;
}
public void setMetadataId(Long metadataId) {
this.metadataId = metadataId;
}
public Integer getShowNum() {
return showNum;
}
public void setShowNum(Integer showNum) {
this.showNum = showNum;
}
public String getPoliceState() {
return policeState;
}
public void setPoliceState(String policeState) {
this.policeState = policeState;
}
public String getPoliceValue() {
return policeValue;
}
public void setPoliceValue(String policeValue) {
this.policeValue = policeValue;
}
public String getPoliceUnit() {
return policeUnit;
}
public void setPoliceUnit(String policeUnit) {
this.policeUnit = policeUnit;
}
public String getPoliceSysmbols() {
return policeSysmbols;
}
public void setPoliceSysmbols(String policeSysmbols) {
this.policeSysmbols = policeSysmbols;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getPoliceLevel() {
return policeLevel;
}
public void setPoliceLevel(Integer policeLevel) {
this.policeLevel = policeLevel;
}
public String getCheckType() {
return checkType;
}
public void setCheckType(String checkType) {
this.checkType = checkType;
}
public String getProcessIden() {
return processIden;
}
public void setProcessIden(String processIden) {
this.processIden = processIden;
}
public String getFiledCommonts() {
return filedCommonts;
}
public void setFiledCommonts(String filedCommonts) {
this.filedCommonts = filedCommonts;
}
public Integer getPoliceEmergent() {
return policeEmergent;
}
public void setPoliceEmergent(Integer policeEmergent) {
if(policeEmergent==null){policeEmergent = 1;}
this.policeEmergent = policeEmergent;
}
public String toString() {
return "showNum=" + showNum + ",policeSysmbols=" + policeSysmbols
+ ",policeValue=" + policeValue + ",policeLevel=" + policeLevel;
}
public String toStringVal(){
return showNum + "|" + policeSysmbols + "|" + policeValue + "|"
+ policeLevel + "|" + filedCommonts;
}
public String getMarker()
{
return marker;
}
public void setMarker(String marker)
{
this.marker = marker;
}
public Integer getMarkerFiledId()
{
return markerFiledId;
}
public void setMarkerFiledId(Integer markerFiledId)
{
this.markerFiledId = markerFiledId;
}
public Integer getMarkerFiledShowNum()
{
return markerFiledShowNum;
}
public void setMarkerFiledShowNum(Integer markerFiledShowNum)
{
this.markerFiledShowNum = markerFiledShowNum;
}
}