This commit is contained in:
caixiang 2022-10-17 10:12:20 +08:00
parent 0bab2292aa
commit 9b9a6fe315
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.qgs.dc.influx.param; package com.qgs.dc.influx.param;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.qgs.dc.influx.template.Event; import com.qgs.dc.influx.template.Event;
import lombok.Data; import lombok.Data;
@ -11,6 +12,7 @@ import java.util.List;
* @DATE: 2022/10/13 16:10 * @DATE: 2022/10/13 16:10
*/ */
@Data @Data
@JsonPropertyOrder(value = {"list","measurement"})
public class InsertParam { public class InsertParam {
List<Event> list; List<Event> list;
String measurement; String measurement;

View File

@ -1,5 +1,6 @@
package com.qgs.dc.influx.template; package com.qgs.dc.influx.template;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.influxdb.annotations.Column; import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement; import com.influxdb.annotations.Measurement;
import lombok.Data; import lombok.Data;
@ -12,6 +13,7 @@ import java.time.Instant;
* @DATE: 2022/6/25 11:13 * @DATE: 2022/6/25 11:13
*/ */
@Data @Data
@JsonPropertyOrder(value = {"time","transationId","argName","argValue"})
public class Event { public class Event {
private Instant time; private Instant time;