ustcyc
2025-01-07 de5d55508afd27fb2b47e6d4d6fd9984525c222c
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
package com.zhitan.realtimedata.domain;
 
import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
 
import java.time.Instant;
 
/**
 * @author fanxinfu
 */
@Measurement(name = "meilin")
public class WritePoint {
 
  @Column(tag = true)
  private String tag;
  @Column
  private Double value;
  @Column(timestamp = true)
  private Instant time;
 
  public WritePoint(String tag, Double value, Instant time) {
    this.tag = tag;
    this.value = value;
    this.time = time;
  }
}