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
nezha-nz-transfer/src/main/java/com/nis/entity/MonitorEndpoint.java
tanghao cae28168a5 init
2021-05-08 19:33:06 +08:00

80 lines
1.4 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.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;
}