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

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

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

    /**
     * 下行错误包数
     */
    private Long downloadErr;


}
