80 lines
1.4 KiB
Java
80 lines
1.4 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.Map;
|
|||
|
|
|
|||
|
|
@Data
|
|||
|
|
@TableName("monitor_endpoint")
|
|||
|
|
public class MonitorEndpoint implements Serializable {
|
|||
|
|
private static final long serialVersionUID = 1L;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 主键
|
|||
|
|
*/
|
|||
|
|
@TableId(type = IdType.INPUT)
|
|||
|
|
private Integer id;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 名称
|
|||
|
|
*/
|
|||
|
|
private String name;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 组件id
|
|||
|
|
*/
|
|||
|
|
private Integer moduleId;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 资产id
|
|||
|
|
*/
|
|||
|
|
private Integer assetId;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 配置参数 当type=HTTP,默认为 module.configs
|
|||
|
|
*/
|
|||
|
|
private String configs;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private Map config;
|
|||
|
|
/**
|
|||
|
|
* 计算 moduleId + assetId + host + port + configs 的hash值,用于确保相同配置不重复
|
|||
|
|
*/
|
|||
|
|
private String hash;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 是否启用 可选值
|
|||
|
|
* 0:停用
|
|||
|
|
* 1:启用
|
|||
|
|
*/
|
|||
|
|
private Integer enabled;
|
|||
|
|
|
|||
|
|
private String seq;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private Integer state;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private MonitorModule module;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private AssetAsset asset;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private Dc dc;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private MonitorProject project;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private Integer alertNum;
|
|||
|
|
|
|||
|
|
@TableField(exist = false)
|
|||
|
|
private Promserver promserver;
|
|||
|
|
}
|