区域统计终端在线率 数据完整性
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.njcn.device.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/11 21:05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel
|
||||
public class AreaDeviceOnlineParam extends DeviceInfoParam.BusinessParam {
|
||||
|
||||
/**
|
||||
* 监测点等级
|
||||
*/
|
||||
@ApiModelProperty("监测点等级:0-全部;1-极重要;2-重要;3-普通;4-不重要;")
|
||||
@NotNull(message = "监测点等级不可为空")
|
||||
@Max(value = 4)
|
||||
@Min(value = 0)
|
||||
private Integer lineLevel;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.njcn.device.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 区域终端在线率
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/11 14:23
|
||||
*/
|
||||
@Data
|
||||
public class AreaDeviceOnlineVO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("区域名称")
|
||||
private String areaName;
|
||||
|
||||
@ApiModelProperty("终端数量")
|
||||
private Integer number=0;
|
||||
|
||||
@ApiModelProperty("投运")
|
||||
private Integer normal=0;
|
||||
|
||||
@ApiModelProperty("投运率")
|
||||
private Double normalRate=3.14159;
|
||||
|
||||
@ApiModelProperty("热备用")
|
||||
private Integer breaks=0;
|
||||
|
||||
@ApiModelProperty("热备用率")
|
||||
private Double breaksRate=3.14159;
|
||||
|
||||
@ApiModelProperty("停运")
|
||||
private Integer shutdown=0;
|
||||
|
||||
@ApiModelProperty("停运率")
|
||||
private Double shutdownRate=3.14159;
|
||||
|
||||
@ApiModelProperty("在线率")
|
||||
private Double onlineRate=3.14159;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.njcn.device.pojo.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 区域数据完整性
|
||||
* @version 1.0.0
|
||||
* @author: chenchao
|
||||
* @date: 2022/08/15 15:49
|
||||
*/
|
||||
@Data
|
||||
public class AreaIntegrityVO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("区域名称")
|
||||
private String areaName;
|
||||
|
||||
@ApiModelProperty("监测点数量")
|
||||
private Integer number=0;
|
||||
|
||||
@ApiModelProperty("数据完整性")
|
||||
private Double integrity=3.14159;
|
||||
|
||||
}
|
||||
@@ -14,7 +14,7 @@ import java.io.Serializable;
|
||||
@Data
|
||||
@Measurement(name = "pqs_onlinerate")
|
||||
public class LineInfluxDbOnlineVO implements Serializable {
|
||||
@Column(name = "dev_index")
|
||||
@Column(name = "dev_id")
|
||||
private String devIndex;
|
||||
|
||||
@Column(name = "onlinerate")
|
||||
|
||||
Reference in New Issue
Block a user