package com.njcn.event.pojo.dto;

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

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EventCount implements Serializable {

    private String lineId;

    /**
     * 暂升次数 1.1~1.8
     * 10ms ~ 1min
     */
    private int upCounts;

    /**
     * 暂降次数 0.1~0.9
     * 10ms ~ 1min
     */
    private int downCounts;

    /**
     * 短时中断 0~0.1
     * 10ms ~ 1min
     */
    private int breakCounts;

    public EventCount(String lineId) {
        this.lineId = lineId;
    }

    @Data
    public static class Detail implements Serializable {

        @ApiModelProperty("监测点ID")
        private String lineId;

        @ApiModelProperty("监测点名称")
        private String lineName;

        @ApiModelProperty("终端名称")
        private String devName;

        @ApiModelProperty("变电站名称")
        private String subName;

        @ApiModelProperty("ip")
        private String ip;

        @ApiModelProperty("暂态指标")
        private String dicData;

        @ApiModelProperty("暂降次数")
        private BigDecimal count;

    }
}
