124 lines
1.9 KiB
Java
124 lines
1.9 KiB
Java
package com.nis.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import lombok.Data;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
|
|
@Data
|
|
@TableName("alert_message_active")
|
|
public class AlertMessageActiveEntity implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* 主键
|
|
*/
|
|
@TableId(type = IdType.INPUT)
|
|
private Integer id;
|
|
|
|
/**
|
|
* 告警规则id
|
|
*/
|
|
private Integer ruleId;
|
|
|
|
/**
|
|
* 告警级别
|
|
*/
|
|
private Integer severityId;
|
|
/**
|
|
* 告警摘要
|
|
*/
|
|
private String summary;
|
|
/**
|
|
* 告警描述
|
|
*/
|
|
private String description;
|
|
/**
|
|
* 告警labels信息
|
|
*/
|
|
private String labels;
|
|
/**
|
|
* 开始时间
|
|
*/
|
|
private Date startAt;
|
|
/**
|
|
* 结束时间
|
|
*/
|
|
private Date endAt;
|
|
/**
|
|
* 状态
|
|
*/
|
|
private Integer state;
|
|
/**
|
|
* 关联project id
|
|
*/
|
|
private Integer projectId;
|
|
/**
|
|
* 关联module Id
|
|
*/
|
|
private Integer moduleId;
|
|
/**
|
|
* 关联endpoint_id
|
|
*/
|
|
private Integer endpointId;
|
|
/**
|
|
* 关联asset id
|
|
*/
|
|
private Integer assetId;
|
|
/**
|
|
* 关联dc
|
|
*/
|
|
private Integer dcId;
|
|
|
|
/**
|
|
* redis hash key
|
|
* */
|
|
private String hashKey;
|
|
|
|
/**
|
|
* remark 修改时使用此参数 记录手动关闭的备注信息
|
|
*/
|
|
private String remark;
|
|
|
|
/**
|
|
* linkId对应实体类
|
|
* */
|
|
@TableField(exist = false)
|
|
private Object linkObject;
|
|
|
|
@TableField(exist = false)
|
|
private AlertRuleEntity alertRule;
|
|
|
|
/**
|
|
* 对应的project
|
|
*/
|
|
@TableField(exist = false)
|
|
private Project project;
|
|
|
|
/**
|
|
* module
|
|
*/
|
|
@TableField(exist = false)
|
|
private Module module;
|
|
|
|
/**
|
|
* endpoint
|
|
*/
|
|
@TableField(exist = false)
|
|
private Endpoint endpoint;
|
|
|
|
/**
|
|
* dc
|
|
*/
|
|
@TableField(exist = false)
|
|
private Dc dc;
|
|
|
|
@TableField(exist = false)
|
|
private String severity;
|
|
}
|