Authored by qinchao

增加接口大数据上报

... ... @@ -8,5 +8,5 @@ public interface BigDataKeyInfoMapper {
/**
* 写入influxdb
*/
void write(String name,String script,String status,String task_id,String count_name,double count);
void write(String content,String name,String script,String status,String task_id,String count_name,double count);
}
\ No newline at end of file
... ...
... ... @@ -23,7 +23,7 @@ public class BigDataKeyInfoMapperImpl implements BigDataKeyInfoMapper {
* 写入influxdb
*/
@Override
public void write(String name,String script,String status,String task_id,String count_name,double count){
public void write(String content,String name,String script,String status,String task_id,String count_name,double count){
Point point = Point.measurement("bigdata_key_info")
.tag("name",name)
.tag("script", script)
... ... @@ -31,6 +31,7 @@ public class BigDataKeyInfoMapperImpl implements BigDataKeyInfoMapper {
.tag("task_id",task_id)
.tag("count_name",count_name)
.addField("count",count)
.addField("content",content)
.build();
try{
... ...
... ... @@ -60,7 +60,7 @@ public class BigdataCtrl {
}
//上报给influxdb
bigDataKeyInfoMapper.write(name,script,status,task_id,count_name,count);
bigDataKeyInfoMapper.write(jsonObject.toJSONString(),name,script,status,task_id,count_name,count);
return new BaseResponse();
}
... ...