upLog - 监控系统上报接口

一步一个脚印一个坑 11月前 ⋅ 429 阅读
ad

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}}"
    }
}

 

 

 

关于Webfunny

Webfunny专注于前端监控系统,前端埋点系统的研发。 致力于帮助开发者快速定位问题,帮助企业用数据驱动业务,实现业务数据的快速增长。支持H5/Web/PC前端、微信小程序、支付宝小程序、UniApp和Taro等跨平台框架。实时监控前端网页、前端数据分析、错误统计分析监控和BUG预警,第一时间报警,快速修复BUG!支持私有化部署,Docker容器化部署,可支持千万级PV的日活量!

  点赞 0   收藏 0
  • 一步一个脚印一个坑
    共发布111篇文章 获得4个收藏
全部评论: 0