diff --git a/docs/en/api/browser-http-api-protocol.md b/docs/en/api/browser-http-api-protocol.md index 6966c21f5b47..2ec24e3287d8 100644 --- a/docs/en/api/browser-http-api-protocol.md +++ b/docs/en/api/browser-http-api-protocol.md @@ -31,7 +31,69 @@ Input: "sslTime": 10, "ttlTime": 10, "firstPackTime": 10, - "fmpTime": 10 +} +``` + +OutPut: + +Http Status: 204 + +### POST http://localhost:12800/browser/perfData/webVitals + +Send a performance data object in JSON format. Since client-js 1.0.0, the following attached metrics are reported. + +Input: + +```json +{ + "service": "web", + "serviceVersion": "v0.0.1", + "pagePath": "/index.html", + "fmpTime": 10, + "clsTime": 10, + "lcpTime": 10, +} +``` + +OutPut: + +Http Status: 204 + +### POST http://localhost:12800/browser/perfData/webInteraction + +Send a performance data object in JSON format. Since client-js 1.0.0, the following attached metrics are reported. + +Input: + +```json +{ + "service": "web", + "serviceVersion": "v0.0.1", + "pagePath": "/index.html", + "fidTime": 10, +} +``` + +OutPut: + +Http Status: 204 + +### POST http://localhost:12800/browser/perfData/resources + +Send a static resources data object in JSON format. Since client-js 1.0.0, the following attached metrics are reported. + +Input: + +```json +{ + "service": "web", + "serviceVersion": "v0.0.1", + "pagePath": "/index.html", + "name": "vue.js", + "duration": 600, + "size": 100000, + "protocol": "h2", + "type": "script", } ``` diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md index aa672797dda1..8eda542d6189 100644 --- a/docs/en/changes/changes.md +++ b/docs/en/changes/changes.md @@ -28,4 +28,6 @@ #### Documentation * Update release document to adopt newly added revision-based process. + All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/224?closed=1) +