package com.njcn.device.pq.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 终端在线率列表实体类
 * @author yzh
 * @date 2022/9/19
 */
@Data
@ApiModel(value = "终端在线率列表实体类")
@AllArgsConstructor
@NoArgsConstructor
public class TerminalOnlineRateDataVO implements Serializable {

    /**
     * 主键id
     */
    @ApiModelProperty(name = "id",value = "主键id")
    private String id;

    /**
     * 父id
     */
    @ApiModelProperty(name = "parentId",value = "父id")
    private String pid;

    /**
     * 等级
     */
    @ApiModelProperty(name = "level",value = "等级")
    private Integer level;

    /**
     * 名称
     */
    @ApiModelProperty(name = "name",value = "名称")
    private String name;

    /**
     * 排序
     */
    @ApiModelProperty(name = "sort",value = "排序")
    private Integer sort;

    /**
     * 设备通讯状态
     */
    @ApiModelProperty(name = "comFlag",value = "设备通讯状态")
    private Integer comFlag;

    /**
     * 终端厂家
     */
    @ApiModelProperty(name = "manufacturer",value = "终端厂家")
    private String manufacturer;

    /**
     * 全部父id字符串
     */
    @ApiModelProperty(name = "pids",value = "全部父id字符串")
    private String pids;


    /**
     * 数据完整性
     */
    @ApiModelProperty(name = "onlineRate",value = "在线率")
    private Double onlineRate;

    /**
     * 在线分钟数
     */
    @ApiModelProperty(name = "onlineMin",value = "在线分钟数")
    private Integer onlineMin;

    /**
     * 离线分钟数
     */
    @ApiModelProperty(name = "offlineMin",value = "离线分钟数")
    private Integer offlineMin;

    /**
     * 最新数据时间
     */
    @ApiModelProperty(name = "updateTime",value = "最新数据时间")
    private String updateTime;

    /**
     * 数据名称
     */
    @ApiModelProperty(name = "dataName",value = "数据名称")
    private String dataName;

    /**
     * 网络参数
     */
    @ApiModelProperty(name = "ip",value = "网络参数")
    private String ip;

    /**
     * 终端等级
     */
    @ApiModelProperty(name = "lineGrade",value = "终端等级")
    private String lineGrade;

    @ApiModelProperty(name = "subScale",value = "变电站电压等级")
    private String subScale;


    @ApiModelProperty(name = "devicePassRate",value = "终端在线率合格率 0：不合格  1：合格")
    private Integer valueOver;

    /**
     * 字段表监测点等级
     */
    @ApiModelProperty(name = "algoDescribe",value = "字段表监测点等级，0：极重要  1：重要  2：普通  3：不重要")
    private Integer algoDescribe;
    /**
     * 子节点集合
     */
    @ApiModelProperty(name = "children",value = "子节点集合")
    private List<TerminalOnlineRateDataVO> children = new ArrayList<>();



}
