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

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author denghuajun
 * @version 1.0.0
 * @date 2022年05月12日 10:13
 */
@Data
public class LineFlowMealDetailVO implements Serializable {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("监测点对应的设备id")
    private String deviceId;

    @ApiModelProperty("监测点对应的设备名称")
    private String deviceName;


    @ApiModelProperty("监测点对应的设备IP")
    private String deviceIP;

    @ApiModelProperty("供电公司")
    private String electricPowerCompany;

    @ApiModelProperty("变电站")
    private String substation;

    @ApiModelProperty("pid")
    private String pid;

    @ApiModelProperty("pids")
    private String pids;

    @ApiModelProperty("等级")
    private Integer level;

    @ApiModelProperty("区域/电压等级/干扰源类型/终端厂家")
    private String name;

    @ApiModelProperty("终端状态")
    private Integer runFlag;

    @ApiModelProperty("通讯状态")
    private Integer comFlag;

    @ApiModelProperty("最新更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("在线率")
    private Float onlineRate;

    @ApiModelProperty("数据完整性")
    private Float integrity;

    @ApiModelProperty("理论数据量")
    private Integer due;

    @ApiModelProperty("实际数据量")
    private Integer real;

    @ApiModelProperty("套餐流量")
    private Float flowMeal;

    @ApiModelProperty("已用流量")
    private Float statisValue;

    @ApiModelProperty("流量占比")
    private Float flowProportion;

    @ApiModelProperty("子集")
    private List<LineFlowMealDetailVO> children;
}
