package com.njcn.gather.systemmonitor.disk.pojo.po;

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.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 磁盘监控全局策略表。
 */
@Data
@TableName("disk_monitor_policy")
public class DiskMonitorPolicy implements Serializable {
    private static final long serialVersionUID = -2789228200584651740L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("policy_name")
    private String policyName;

    @TableField("monitor_enabled")
    private Integer monitorEnabled;

    @TableField("run_on_app_start")
    private Integer runOnAppStart;

    @TableField("daily_run_time")
    private LocalTime dailyRunTime;

    @TableField("warning_notify_mode")
    private String warningNotifyMode;

    @TableField("alarm_notify_mode")
    private String alarmNotifyMode;

    @TableField("last_job_id")
    private Long lastJobId;

    @TableField("remark")
    private String remark;

    @TableField("created_by")
    private String createdBy;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_by")
    private String updatedBy;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
