mark
This commit is contained in:
parent
b93869c4a1
commit
bf67380718
@ -115,7 +115,7 @@ public enum InfluxClient {
|
|||||||
List<Point> list = new ArrayList<>();
|
List<Point> list = new ArrayList<>();
|
||||||
for(Event event:events){
|
for(Event event:events){
|
||||||
Point point = null;
|
Point point = null;
|
||||||
if(event.getBatchNum()==null){
|
if(event.getSampleNumber()==null){
|
||||||
point = Point.measurement(measurement)
|
point = Point.measurement(measurement)
|
||||||
.addTag("transationId", event.getTransationId())
|
.addTag("transationId", event.getTransationId())
|
||||||
.addTag("argName", event.getArgName())
|
.addTag("argName", event.getArgName())
|
||||||
|
@ -61,7 +61,7 @@ public class S7DemoController {
|
|||||||
Instant time = new Date().toInstant();
|
Instant time = new Date().toInstant();
|
||||||
Event event = new Event();
|
Event event = new Event();
|
||||||
event.setTime(time);
|
event.setTime(time);
|
||||||
event.setTransationId("asas123");
|
event.setBatchNum("1");
|
||||||
event.setArgName("failDayDay");
|
event.setArgName("failDayDay");
|
||||||
event.setArgValue("1");
|
event.setArgValue("1");
|
||||||
list.add(event);
|
list.add(event);
|
||||||
@ -70,7 +70,7 @@ public class S7DemoController {
|
|||||||
|
|
||||||
Event event2 = new Event();
|
Event event2 = new Event();
|
||||||
event2.setTime(time);
|
event2.setTime(time);
|
||||||
event2.setTransationId("asas456");
|
event.setBatchNum("2");
|
||||||
event2.setArgName("failDayDay");
|
event2.setArgName("failDayDay");
|
||||||
event2.setArgValue("2");
|
event2.setArgValue("2");
|
||||||
list.add(event2);
|
list.add(event2);
|
||||||
|
Loading…
Reference in New Issue
Block a user