fixed:
1. 修复探测功能初次探测后,影响配置的问题。 2. 修复采集任务异常时,某些状态未处理的问题。 3. 修复数据插入TdEngine时转义的问题。 4. 修复开发环境读取探测配置文件时路径错误的问题
This commit is contained in:
@@ -2,6 +2,7 @@ package com.usthe.common.entity.job;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.google.gson.Gson;
|
||||
import com.usthe.common.entity.message.CollectRep;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
@@ -180,4 +181,11 @@ public class Job {
|
||||
}
|
||||
responseDataTemp.add(metricsData);
|
||||
}
|
||||
|
||||
private static final Gson GSON = new Gson();
|
||||
|
||||
public Job clone(){
|
||||
// 深度克隆
|
||||
return GSON.fromJson(GSON.toJsonTree(this), Job.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user