package com.battery.business.domain;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* 推式来源落地表的一行(ADR-0065):厂商原始行按收到的键值原样保存在 {@code payloadJson},
|
* 同时带上接收端点解析出的身份、时间、协议序号与测量列。
|
*
|
* <p>解释只做一遍:厂商列名到这些字段的映射在接收端点里,适配器只把落地行投影成统一观测,
|
* 因此适配器里不出现任何厂商列名。{@code recordKey} 是来源行身份,重复推送由它幂等忽略。
|
*/
|
public class TDeviceIngestRecord implements Serializable
|
{
|
/** 载荷类别:拓扑上报,声明该来源当前有哪些通道。 */
|
public static final String KIND_TOPOLOGY = "TOPOLOGY";
|
/** 载荷类别:逐点数据行。 */
|
public static final String KIND_SAMPLE = "SAMPLE";
|
/** 载荷类别:存活心跳,只刷新"取数程序还在推"这一条事实。 */
|
public static final String KIND_HEARTBEAT = "HEARTBEAT";
|
|
private Long ingestId;
|
private String adapterCode;
|
private String payloadKind;
|
private Integer devtype;
|
private Integer devid;
|
private Integer subdevid;
|
private Integer chlid;
|
private Long recordSequence;
|
private String recordKey;
|
private String sourceRef;
|
private Date deviceTimeUtc;
|
private String deviceTimeRaw;
|
private String timezoneId;
|
private Integer cycleNo;
|
private Integer stepNo;
|
private BigDecimal relativeTimeSeconds;
|
private BigDecimal voltageV;
|
private BigDecimal currentA;
|
private BigDecimal chargeCapacityAh;
|
private BigDecimal dischargeCapacityAh;
|
private BigDecimal chargeEnergyWh;
|
private BigDecimal dischargeEnergyWh;
|
private String payloadJson;
|
private byte[] contentSha256;
|
private Date receivedAtUtc;
|
|
public Long getIngestId() { return ingestId; } public void setIngestId(Long v) { ingestId = v; }
|
public String getAdapterCode() { return adapterCode; } public void setAdapterCode(String v) { adapterCode = v; }
|
public String getPayloadKind() { return payloadKind; } public void setPayloadKind(String v) { payloadKind = v; }
|
public Integer getDevtype() { return devtype; } public void setDevtype(Integer v) { devtype = v; }
|
public Integer getDevid() { return devid; } public void setDevid(Integer v) { devid = v; }
|
public Integer getSubdevid() { return subdevid; } public void setSubdevid(Integer v) { subdevid = v; }
|
public Integer getChlid() { return chlid; } public void setChlid(Integer v) { chlid = v; }
|
public Long getRecordSequence() { return recordSequence; } public void setRecordSequence(Long v) { recordSequence = v; }
|
public String getRecordKey() { return recordKey; } public void setRecordKey(String v) { recordKey = v; }
|
public String getSourceRef() { return sourceRef; } public void setSourceRef(String v) { sourceRef = v; }
|
public Date getDeviceTimeUtc() { return deviceTimeUtc; } public void setDeviceTimeUtc(Date v) { deviceTimeUtc = v; }
|
public String getDeviceTimeRaw() { return deviceTimeRaw; } public void setDeviceTimeRaw(String v) { deviceTimeRaw = v; }
|
public String getTimezoneId() { return timezoneId; } public void setTimezoneId(String v) { timezoneId = v; }
|
public Integer getCycleNo() { return cycleNo; } public void setCycleNo(Integer v) { cycleNo = v; }
|
public Integer getStepNo() { return stepNo; } public void setStepNo(Integer v) { stepNo = v; }
|
public BigDecimal getRelativeTimeSeconds() { return relativeTimeSeconds; }
|
public void setRelativeTimeSeconds(BigDecimal v) { relativeTimeSeconds = v; }
|
public BigDecimal getVoltageV() { return voltageV; } public void setVoltageV(BigDecimal v) { voltageV = v; }
|
public BigDecimal getCurrentA() { return currentA; } public void setCurrentA(BigDecimal v) { currentA = v; }
|
public BigDecimal getChargeCapacityAh() { return chargeCapacityAh; }
|
public void setChargeCapacityAh(BigDecimal v) { chargeCapacityAh = v; }
|
public BigDecimal getDischargeCapacityAh() { return dischargeCapacityAh; }
|
public void setDischargeCapacityAh(BigDecimal v) { dischargeCapacityAh = v; }
|
public BigDecimal getChargeEnergyWh() { return chargeEnergyWh; }
|
public void setChargeEnergyWh(BigDecimal v) { chargeEnergyWh = v; }
|
public BigDecimal getDischargeEnergyWh() { return dischargeEnergyWh; }
|
public void setDischargeEnergyWh(BigDecimal v) { dischargeEnergyWh = v; }
|
public String getPayloadJson() { return payloadJson; } public void setPayloadJson(String v) { payloadJson = v; }
|
public byte[] getContentSha256() { return contentSha256; } public void setContentSha256(byte[] v) { contentSha256 = v; }
|
public Date getReceivedAtUtc() { return receivedAtUtc; } public void setReceivedAtUtc(Date v) { receivedAtUtc = v; }
|
}
|