【文件属性】:
文件名称:api:性能问题 REST API
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-14 07:25:43
JavaScript
性能问题 API
网站性能指标 REST API
安装
npm i
运行服务 API
npm run api
服务接口:
路由: /metrics/har方法: GET参数:
serviceUrl = [Encoded service url]
connectionType = [3G, 4G, cable]
hookUrl = [Encoded service url]
connection = {
"downstreamKbps": Integer,
"upstreamKbps": Integer,
"latency": Integer
}
如果请求已成功添加到队列,则返回 200。 当性能数据准备好时,它会被发送回给定的 hookUrl:
方法: PUT标题: Content-Type: application/json :
{
r
【文件预览】:
api-master
----.gitignore(96B)
----routes()
--------metrics.js(1000B)
----README.md(991B)
----publishers()
--------index.js(1KB)
----processes.json(91B)
----package.json(473B)
----commons()
--------amqp.json(150B)
--------amqpUtils.js(527B)
----index.js(540B)
----config()
--------connectionTypes.json(318B)