module.exports = function (callback, argJson, rmt, args) {
  let argParams = JSON.parse(argJson);

  /// if (dictionaryUrl.ContainsKey("request_url"))
  /// if (dictionaryUrl.ContainsKey("request_post_data"))
  /// if (dictionaryUrl.ContainsKey("header_content_type"))
  //  request_method  get post
  /// dictionaryUrl["_nodeq"]
  /// dictionaryUrl["_nodejs"] 


var dateS = dayjs(argParams._currentDayS).unix();//.add(8, 'hour')
var dateE = dayjs(argParams._currentDayE).unix();//.add(8, 'hour')
argParams.dateS = dateS;
argParams.dateE = dateE;
var post_data = { "start": dateS, "end": dateE, "ids": ["0_121_1_19_0", "0_121_1_27_0", "0_121_1_42_0"], "agg_interval": "hour" };
var post_data_str = JSON.stringify(post_data);
var check = crypto.createHash('md5').update(post_data_str).digest("hex");

argParams["request_method"] = "post";
//argParams["header_content_type"]= "*/*;charset=UTF-8";

argParams["request_post_data"] = post_data_str;
argParams["request_header_data"] = JSON.stringify({ "Cookie": argParams["GJ_Cookie"], "check": check });

argParams["request_url"] = "http://{ip}/api/v2/tsdb/orig/agg";


  callback(null, argParams);
};
文档更新时间: 2021-07-04 08:00   作者:admin