Skip to content

Commit

Permalink
Update the browser API protocol doc (#12619)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fine0830 authored Jan 7, 2025
1 parent 844aa50 commit 09965ab
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
64 changes: 63 additions & 1 deletion docs/en/api/browser-http-api-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
```

Expand Down
2 changes: 2 additions & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@
* Add Status APIs docs.
* Simplified the release process with removing maven central publish relative processes.


All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/224?closed=1)

0 comments on commit 09965ab

Please sign in to comment.