Commit 56158fe3 by 魏建枢

增加设备指纹拉链拦截器

parent ef84964a
...@@ -45,4 +45,17 @@ public class InterceptorDataFormatUtil { ...@@ -45,4 +45,17 @@ public class InterceptorDataFormatUtil {
return arrayList; return arrayList;
} }
public static List<String> zipperDeviceFingerprintDataFormat(JSONObject jsonObj) {
List<String> arrayList = new ArrayList<>();
arrayList.add(jsonObj.getString("brand"));
arrayList.add(jsonObj.getString("board"));
arrayList.add(jsonObj.getString("device_fingerprint"));
arrayList.add(jsonObj.getString("device_id"));
arrayList.add(jsonObj.getString("uid"));
arrayList.add(jsonObj.getString("message"));
arrayList.add(jsonObj.getString("status"));
return arrayList;
}
} }
...@@ -21,6 +21,8 @@ public class InterceptorSelector { ...@@ -21,6 +21,8 @@ public class InterceptorSelector {
return dataSplit(InterceptorDataFormatUtil.zipperStrategyDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.zipperStrategyDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "collectLog")) { }else if(StringUtils.equals(flume_type, "collectLog")) {
return dataSplit(InterceptorDataFormatUtil.collectLogDataFormat(jsonObj)); return dataSplit(InterceptorDataFormatUtil.collectLogDataFormat(jsonObj));
}else if(StringUtils.equals(flume_type, "zipperDeviceFingerprint")) {
return dataSplit(InterceptorDataFormatUtil.zipperDeviceFingerprintDataFormat(jsonObj));
} }
return resultStr; return resultStr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment