liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.dingzhuo.energy.dataservice.data.influxdb;
 
import com.jsoniter.annotation.JsonProperty;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;
 
import java.io.Serializable;
import java.time.Instant;
 
/**
 * @author fanxinfu
 */
@Measurement(name = "daq")
public class RtdbResult implements Serializable {
  private static final long serialVersionUID = -6608775093489743678L;
  @Column(name = "time")
  @JsonProperty(value = "dataTime", decoder = DecodeInstant.class)
  private Instant time;
  @Column(name = "code", tag = true)
  @JsonProperty("tagCode")
  private String tagCode;
  @Column(name = "value")
  @JsonProperty("value")
  private Double value;
  @Column(name = "quality")
  @JsonProperty("quality")
  private int quality;
 
  public Instant getTime() {
    return time;
  }
 
  public void setTime(Instant time) {
    this.time = time;
  }
 
  public String getTagCode() {
    return tagCode;
  }
 
  public void setTagCode(String tagCode) {
    this.tagCode = tagCode;
  }
 
  public Double getValue() {
    return value;
  }
 
  public void setValue(Double value) {
    this.value = value;
  }
 
  public int getQuality() {
    return quality;
  }
 
  public void setQuality(int quality) {
    this.quality = quality;
  }
 
  @Override
  public String toString() {
    return "RtdbResult{" +
        "time=" + time +
        ", tagCode='" + tagCode + '\'' +
        ", value=" + value +
        ", quality=" + quality +
        '}';
  }
}