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_result")
public class DiskMonitorResult implements Serializable {
    private static final long serialVersionUID = 5557836396879348480L;

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

    @TableField("job_id")
    private Long jobId;

    @TableField("target_id")
    private Long targetId;

    @TableField("drive_letter")
    private String driveLetter;

    @TableField("total_bytes")
    private Long totalBytes;

    @TableField("used_bytes")
    private Long usedBytes;

    @TableField("free_bytes")
    private Long freeBytes;

    @TableField("used_percent")
    private BigDecimal usedPercent;

    @TableField("current_status")
    private String currentStatus;

    @TableField("previous_status")
    private String previousStatus;

    @TableField("status_changed")
    private Integer statusChanged;

    @TableField("should_notify")
    private Integer shouldNotify;

    @TableField("notify_reason")
    private String notifyReason;

    @TableField("scan_time")
    private LocalDateTime scanTime;

    @TableField("message")
    private String message;
}
