package com.njcn.cloud.pojo.vo.AdminStatistic;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Description: 终端在线率统计
 * @Author: wr
 * @Date: 2024/1/5 10:44
 */
@Data
public class StaticInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("统计开始时间")
    private Date timeStart;

    @ApiModelProperty("统计结束时间")
    private Date timeEnd;

    @ApiModelProperty("终端总在线率")
    private Float onlineRatez;

    @ApiModelProperty("终端通讯异常数")
    private Long comError;

    @ApiModelProperty("各终端信息集合")
    private List<DevStatic> list;


    @Data
    public static class DevStatic implements Serializable {

        private static final long serialVersionUID = 1L;

        @ApiModelProperty("终端编号")
        private String devIndex;
        @ApiModelProperty("终端名称")
        private String devName;
        @ApiModelProperty("ip")
        private String ip;
        @ApiModelProperty("在线率")
        private Float onlineRate;
        @ApiModelProperty("供电公司")
        private String gdName;
        @ApiModelProperty("变电站信息")
        private String subName;
        @ApiModelProperty("最后更新时间")
        private LocalDateTime timeId;
    }

}