终端异常统计接口开发
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql.po.line;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.models.auth.In;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AlarmPO extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
private String deviceId;
|
||||
|
||||
|
||||
/**
|
||||
* 告警描述
|
||||
*/
|
||||
private String alarmDesc;
|
||||
|
||||
/**
|
||||
* 监测点告警次数
|
||||
*/
|
||||
private Integer alarmCount = 0;
|
||||
|
||||
/**
|
||||
* 装置下属监测点等级 : 0-极重要 1-重要 2-普通 3-不重要
|
||||
* */
|
||||
private Integer level;
|
||||
|
||||
|
||||
/**
|
||||
* 1.装置 2.监测点
|
||||
*/
|
||||
private Integer alarmDevLineType;
|
||||
|
||||
/**
|
||||
* 理论数据量
|
||||
*/
|
||||
private BigDecimal due;
|
||||
|
||||
/**
|
||||
* 实际数据量
|
||||
*/
|
||||
private BigDecimal real;
|
||||
|
||||
/**
|
||||
* 数据完整性
|
||||
*/
|
||||
private BigDecimal integrity;
|
||||
|
||||
|
||||
private Float flowMeal;
|
||||
|
||||
|
||||
private Float statisValue;
|
||||
|
||||
|
||||
private Float flowProportion;
|
||||
|
||||
/**
|
||||
* 通讯终端次数
|
||||
*/
|
||||
private Integer comOutNum = 0;
|
||||
|
||||
/**
|
||||
* 中断时间段描述
|
||||
*/
|
||||
private String comOutDesc;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql.po.line;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
@Data
|
||||
public class AlarmStrategyVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
/**
|
||||
* 等级
|
||||
*/
|
||||
@ApiModelProperty("等级")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("告警等级code:与高级算法内部Id描述对应")
|
||||
private Integer algoDesc;
|
||||
/**
|
||||
* 数据完整性标准
|
||||
*/
|
||||
@ApiModelProperty("数据完整性标准")
|
||||
private Integer integrityValue;
|
||||
/**
|
||||
* 在线率标准
|
||||
*/
|
||||
@ApiModelProperty("在线率标准")
|
||||
private Integer onlineValue;
|
||||
/**
|
||||
* 离线持续时间
|
||||
*/
|
||||
@ApiModelProperty("离线持续时间")
|
||||
private Integer offTimeValue;
|
||||
/**
|
||||
* 告警次数
|
||||
*/
|
||||
@ApiModelProperty("告警次数")
|
||||
private Integer warnValue;
|
||||
/**
|
||||
* 更新日期
|
||||
*/
|
||||
@ApiModelProperty("更新日期")
|
||||
private LocalDateTime updateTime;
|
||||
/**
|
||||
* 更新用户
|
||||
*/
|
||||
@ApiModelProperty("更新用户")
|
||||
private String updateBy;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql.po.line;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
// @TableName("pq_line")
|
||||
public class LinePO extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 监测点Id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 所属装置id
|
||||
*/
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 父节点(0为根节点)
|
||||
*/
|
||||
private String pid;
|
||||
|
||||
/**
|
||||
* 上层所有节点
|
||||
*/
|
||||
private String pids;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 等级:0-项目名称;1- 工程名称;2-单位;3-部门;4-终端;5-母线;6-监测点
|
||||
*/
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 排序(默认为0,有特殊排序需要时候人为输入)
|
||||
*/
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 状态 0-删除;1-正常;默认正常
|
||||
*/
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 监测点等级
|
||||
*/
|
||||
private String lineGrade;
|
||||
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 告警描述
|
||||
*/
|
||||
private String alarmDesc;
|
||||
|
||||
/**
|
||||
* 监测点告警次数
|
||||
*/
|
||||
private Integer alarmCount;
|
||||
|
||||
|
||||
/**
|
||||
* 1.装置 2.监测点
|
||||
*/
|
||||
private Integer alarmDevLineType;
|
||||
|
||||
/**
|
||||
* 在线率
|
||||
*/
|
||||
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;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql.po.line;
|
||||
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class TopMsgPO extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
private String time;
|
||||
|
||||
/**
|
||||
* 装置id
|
||||
*/
|
||||
private String devId;
|
||||
|
||||
/**
|
||||
* 通信中断次数
|
||||
*/
|
||||
private Integer comOutCount;
|
||||
|
||||
/**
|
||||
* 通信中断时间段描述
|
||||
*/
|
||||
private String comOutDesc;
|
||||
|
||||
/**
|
||||
* 数据完整性标识 0.不达标 1.达标
|
||||
*/
|
||||
private String integrityFlag;
|
||||
|
||||
/**
|
||||
* 数据完成性百分比
|
||||
*/
|
||||
private Integer integrityValue;
|
||||
|
||||
/**
|
||||
* 告警次数
|
||||
*/
|
||||
private Integer alarmCount;
|
||||
|
||||
/**
|
||||
* 告警描述
|
||||
*/
|
||||
private String alarmDesc;
|
||||
|
||||
/**
|
||||
* 流量超标标识 0.不达标 1.达标
|
||||
*/
|
||||
private Integer flowFlag;
|
||||
|
||||
/**
|
||||
* 流量使用百分比
|
||||
*/
|
||||
private float flowValue;
|
||||
|
||||
/**
|
||||
* 状态 0.删除 1.正常
|
||||
*/
|
||||
private String state;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.njcn.prepare.harmonic.pojo.param;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class DeviceAbnormaStatisticsParam implements Serializable {
|
||||
|
||||
@ApiModelProperty("开始时间")
|
||||
private String beginTime;
|
||||
|
||||
@ApiModelProperty("结束时间")
|
||||
private String endTime;
|
||||
}
|
||||
Reference in New Issue
Block a user