package org.dromara.domain.vo;

import org.dromara.domain.SenClusterNodes;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 集群配置视图对象 sen_cluster_nodes
 *
 * @author luogang
 * @date 2024-09-13
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SenClusterNodes.class)
public class SenClusterNodesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 节点id
     */
    @ExcelProperty(value = "节点id")
    private Long nodeId;

    /**
     * 节点名称
     */
    @ExcelProperty(value = "节点名称")
    private String nodeName;

    /**
     * 硬件类型
     */
    @ExcelProperty(value = "硬件类型")
    private String hardwareType;

    /**
     * 算法提供商
     */
    @ExcelProperty(value = "算法提供商")
    private String algorithmProvider;

    /**
     * 节点算力
     */
    @ExcelProperty(value = "节点算力")
    private Long computePower;

    /**
     * 节点IP
     */
    @ExcelProperty(value = "节点IP")
    private String nodeIp;

    /**
     * 算力路数
     */
    @ExcelProperty(value = "算力路数")
    private Long computePaths;

    /**
     * 运行中任务数
     */
    @ExcelProperty(value = "运行中任务数")
    private Long runningTasks;

    /**
     * 运行状态（0-运行中 1-已停止2-运行报错）
     */
    @ExcelProperty(value = "运行状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "running_status")
    private String runningStatus;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String nodeDesc;


}
