upLog;
日志上报接口;由探针代码触发,自动上报。上报频率:次/8s ,可通过项目设置页配置。
请求示例如下:
curl 'https://xxx.webfunny.cn/server/upLog' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,la;q=0.7' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Origin: https://www.webfunny.com' \
-H 'Pragma: no-cache' \
-H 'Referer: https://xxx.webfunny.xxx/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw 'data={"logInfo":"{\"wmVersion\":\"3.1.49\",\"h\":1687438610803,\"a\":\"webfunny_20221204_002450_pro\",\"g\":\"https://www.webfunny.com/webfunnyMonitor\",\"f\":\"aHR0cHMlM0ElMkYlMkZ3d3cud2ViZnVubnkuY29tJTJGd2ViZnVubnlNb25pdG9y\",\"b\":\"c1544a47-0aa4-4e7b-8678-82c392b8cd88-20230527142437363\",\"c\":\"18221608362\",\"j\":\"MS4wLjE=\",\"d\":\"dGFn\",\"e\":\"\",\"i\":\"CUSTOMER_PV\",\"k\":\"cf1a0807-a665-4565-a111-c86a018a339b-20230622205650\",\"l\":\"PC\",\"deviceSize\":\"1680×1050\",\"m\":\"web\",\"n\":\"chrome\",\"o\":\"114.0.0.0\",\"p\":\"\",\"q\":\"\",\"r\":\"\",\"s\":\"\",\"t\":\"load\",\"u\":0,\"newStatus\":\"o\",\"referrer\":\"https://www.webfunny.com/blog/users/4\"}$$$"}' \
--compressed
返回结果如下:
d: 代表连线状态,c-连线状态,d-非连线状态。
c: 代表该项目的参数配置,可通过项目设置页进行配置。
{
"code": 200,
"msg": "",
"data": {
"d": "d",
"c": "{\"pv\":{\"s\":true,\"ia\":[\"\"]},\"je\":{\"s\":true,\"ia\":[\"\"]},\"hl\":{\"s\":true,\"ia\":[\"\"],\"uh\":false,\"rl\":500,\"sl\":500},\"rl\":{\"s\":true,\"ia\":[\"\"]},\"bl\":{\"s\":true},\"lc\":{\"s\":false},\"s\":true,\"ia\":[\"\"],\"wc\":40,\"pageAggregation\":1,\"httpAggregation\":2,\"sc\":{\"r\":100,\"c\":3}}"
}
}