RAgentEvent.java 1.81 KB
package vion.model.monitor;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 项目监测关联
 */
@Getter
@Setter
@TableName(value = "mr_agent_event")
    public class RAgentEvent {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * agent uid
     */
    @TableField(value = "agent_uid")
    private String agentUid;

    /**
     * 所属集团uid
     */
    @TableField(value = "account_uid")
    private String accountUid;

    /**
     * mall unid
     */
    @TableField(value = "mall_uid")
    private String mallUid;

    /**
     * 事件唯一ID
     */
    @TableField(value = "event_uid")
    private String eventUid;

    /**
     * 事件类型
     */
    @TableField(value = "event_type")
    private String eventType;

    /**
     * 监测时间
     */
    @TableField(value = "cron")
    private String cron;

    /**
     * 默认阈值,可为空
     */
    @TableField(value = "threshold")
    private String threshold;

    /**
     * 开关 0:关 1:开
     */
    @TableField(value = "control_switch")
    private Short controlSwitch;

    /**
     * 过期时间,为空则永不过期
     */
    @TableField(value = "expire")
    private LocalDate expire;

    /**
     * 事件建立者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 事件更新者
     */
    @TableField(value = "udpate_by")
    private String udpateBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<String> mallUidList;
}