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.ServerIoMonitor;

/**
 * 服务器IO吞吐状态监控-独立业务对象 server_io_monitor
 *
 * @author Lion Li
 * @date 2026-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ServerIoMonitor.class, reverseConvertGenerate = false)
public class ServerIoMonitorBo 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
     */
    @NotBlank(message = "对应磁盘挂载路径，如：/ /data不能为空", groups = { AddGroup.class, EditGroup.class })
    private String diskPath;

    /**
     * 磁盘读吞吐(MB/s)
     */
    @NotNull(message = "磁盘读吞吐(MB/s)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ioReadMb;

    /**
     * 磁盘写吞吐(MB/s)
     */
    @NotNull(message = "磁盘写吞吐(MB/s)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ioWriteMb;

    /**
     * 读IOPS，每秒读请求数
     */
    @NotNull(message = "读IOPS，每秒读请求数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ioReadIops;

    /**
     * 写IOPS，每秒写请求数
     */
    @NotNull(message = "写IOPS，每秒写请求数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long ioWriteIops;

    /**
     * IO等待率(%)
     */
    private Long ioWait;


}
