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

/**
 * 磁盘监控盘符配置表。
 */
@Data
@TableName("disk_monitor_target")
public class DiskMonitorTarget implements Serializable {
    private static final long serialVersionUID = -3567440027709476481L;

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

    @TableField("policy_id")
    private Long policyId;

    @TableField("drive_letter")
    private String driveLetter;

    @TableField("monitor_enabled")
    private Integer monitorEnabled;

    @TableField("warning_usage_percent")
    private Integer warningUsagePercent;

    @TableField("alarm_usage_percent")
    private Integer alarmUsagePercent;

    @TableField("notify_path_enabled")
    private Integer notifyPathEnabled;

    @TableField("notify_path_list_json")
    private String notifyPathListJson;

    @TableField("notify_http_enabled")
    private Integer notifyHttpEnabled;

    @TableField("notify_http_list_json")
    private String notifyHttpListJson;

    @TableField("last_status")
    private String lastStatus;

    @TableField("last_scan_time")
    private LocalDateTime lastScanTime;

    @TableField("last_used_percent")
    private BigDecimal lastUsedPercent;

    @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;
}
