This commit is contained in:
caixiang 2022-12-08 16:17:15 +08:00
parent b93869c4a1
commit bf67380718
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ public enum InfluxClient {
List<Point> list = new ArrayList<>();
for(Event event:events){
Point point = null;
if(event.getBatchNum()==null){
if(event.getSampleNumber()==null){
point = Point.measurement(measurement)
.addTag("transationId", event.getTransationId())
.addTag("argName", event.getArgName())

View File

@ -61,7 +61,7 @@ public class S7DemoController {
Instant time = new Date().toInstant();
Event event = new Event();
event.setTime(time);
event.setTransationId("asas123");
event.setBatchNum("1");
event.setArgName("failDayDay");
event.setArgValue("1");
list.add(event);
@ -70,7 +70,7 @@ public class S7DemoController {
Event event2 = new Event();
event2.setTime(time);
event2.setTransationId("asas456");
event.setBatchNum("2");
event2.setArgName("failDayDay");
event2.setArgValue("2");
list.add(event2);