package org.jk.rag.domain.bo;


import org.jk.common.core.validate.AddGroup;
import org.jk.common.core.validate.EditGroup;
import org.jk.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.jk.rag.domain.ServerDiskMonitor;

/**
 * 服务器硬盘状态监控-独立业务对象 server_disk_monitor
 *
 * @author Lion Li
 * @date 2026-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ServerDiskMonitor.class, reverseConvertGenerate = false)
public class ServerDiskMonitorBo extends BaseEntity {

    /**
     * 主键ID，雪花算法生成，全局唯一
     */
    @NotNull(message = "主键ID，雪花算法生成，全局唯一不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联服务器基础表ID
     */
    @NotNull(message = "关联服务器基础表ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long serverId;

    /**
     * 服务器IP地址
     */
    @NotBlank(message = "服务器IP地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serverIp;

    /**
     * 服务器名称
     */
    @NotBlank(message = "服务器名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serverName;

    /**
     * 磁盘挂载路径，如：/ /data /C:
     */
    @NotBlank(message = "磁盘挂载路径，如：/ /data /C:不能为空", groups = { AddGroup.class, EditGroup.class })
    private String diskPath;

    /**
     * 磁盘总容量(GB)
     */
    @NotNull(message = "磁盘总容量(GB)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long diskTotal;

    /**
     * 已使用容量(GB)
     */
    @NotNull(message = "已使用容量(GB)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long diskUsed;

    /**
     * 剩余容量(GB)
     */
    @NotNull(message = "剩余容量(GB)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long diskFree;

    /**
     * 磁盘使用率(%)，0-100.00
     */
    @NotNull(message = "磁盘使用率(%)，0-100.00不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long diskUsage;


}
