package com.ycl.platform.domain.result.UY;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ycl.platform.domain.result.BaseResult;
|
import lombok.Data;
|
import org.springframework.data.mongodb.core.index.TextIndexed;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* 点位在线率
|
*
|
* @author gonghl
|
* @since 2024-4-19 11:37:30
|
*/
|
@Data
|
@Document(collection = "uy_online")
|
public class VideoOnlineResult extends BaseResult {
|
|
/**
|
* 行政区划编码
|
*/
|
private String arealayerPath;
|
/**
|
* 行政区划编码
|
*/
|
private String arealayerno;
|
/**
|
* 行政区划名称
|
*/
|
@TextIndexed
|
private String arealayerName;
|
|
/**
|
* 解码状态码
|
*/
|
private Integer decodingCode;
|
|
/**
|
* 设备id
|
*/
|
private String deviceId;
|
/**
|
* 设备名称
|
*/
|
private String deviceName;
|
/**
|
* icmp延迟
|
*/
|
private Double icmpDelay;
|
/**
|
* icmp状态 2/1/-1/0 全部/在线/离线/未知
|
*/
|
private Integer icmpStatus;
|
/**
|
* icmp状态 2/1/-1/0 全部/在线/离线/未知
|
*/
|
private String icmpStatusText;
|
/**
|
* 最近icmp时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date icmpTime;
|
/**
|
* 关键帧时延
|
*/
|
private Integer ifmDelay;
|
/**
|
* ip地址
|
*/
|
private String ipAddr;
|
/**
|
* 最近持续离线故障次数
|
*/
|
private Integer olErrEverduring;
|
/**
|
*
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date olErrEverduringFirstTime;
|
/**
|
* 累计离线故障次数
|
*/
|
private Integer olErrTotal;
|
/**
|
* 累计离线故障率
|
*/
|
private String olErrTotalRate;
|
/**
|
* 巡检次数
|
*/
|
private Integer olTotal;
|
/**
|
* sip状态码
|
*/
|
private Integer sipCode;
|
/**
|
* 信令时延
|
*/
|
private Integer sipDelay;
|
/**
|
* 在线状态 2/1/-1/0 全部/在线/离线/未知
|
*/
|
private Integer status;
|
/**
|
* 在线状态 2/1/-1/0 全部/在线/离线/未知
|
*/
|
private String statusText;
|
/**
|
* 省厅标签
|
*/
|
private String tagStr;
|
/**
|
* 省厅标签
|
*/
|
private List<String> tags;
|
/**
|
* 租户id
|
*/
|
private String tenantId;
|
/**
|
* 视频流时延
|
*/
|
private Integer videoDelay;
|
/**
|
*
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date vqdTime;
|
|
public String getIcmpStatusText() {
|
if (icmpStatus == 2) {
|
this.icmpStatusText = "全部";
|
}
|
if (icmpStatus == 1) {
|
this.icmpStatusText = "在线";
|
}
|
if (icmpStatus == -1) {
|
this.icmpStatusText = "离线";
|
}
|
if (icmpStatus == 0) {
|
this.icmpStatusText = "未知";
|
}
|
return icmpStatusText;
|
}
|
|
public String getStatusText() {
|
if (status == 2) {
|
this.statusText = "全部";
|
}
|
if (status == 1) {
|
this.statusText = "在线";
|
}
|
if (status == -1) {
|
this.statusText = "离线";
|
}
|
if (status == 0) {
|
this.statusText = "未知";
|
}
|
return statusText;
|
}
|
}
|