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

/**
 * 服务器网络上行状态监控-独立业务对象 server_net_upload_monitor
 *
 * @author Lion Li
 * @date 2026-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ServerNetUploadMonitor.class, reverseConvertGenerate = false)
public class ServerNetUploadMonitorBo 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;

    /**
     * 网卡名称，如：eth0 ens33 eth1
     */
    @NotBlank(message = "网卡名称，如：eth0 ens33 eth1不能为空", groups = { AddGroup.class, EditGroup.class })
    private String netCard;

    /**
     * 上行速率(MB/s)，服务器向外发送
     */
    @NotNull(message = "上行速率(MB/s)，服务器向外发送不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uploadSpeed;

    /**
     * 累计上行数据包数
     */
    @NotNull(message = "累计上行数据包数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uploadPackets;

    /**
     * 上行错误包数
     */
    private Long uploadErr;


}
