From 500dbd4ef59fa86984ed2d98f28e8314b84cb176 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 21 Jan 2025 16:41:12 +0800 Subject: [PATCH 1/3] update protocol --- docs/en/api/browser-http-api-protocol.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/en/api/browser-http-api-protocol.md b/docs/en/api/browser-http-api-protocol.md index fcf45389a005..98810cdf8e04 100644 --- a/docs/en/api/browser-http-api-protocol.md +++ b/docs/en/api/browser-http-api-protocol.md @@ -59,6 +59,25 @@ 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", + "inpTime": 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. From 61b4923040437b1c1050b7c9c5f161f9f0b1687b Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 21 Jan 2025 16:45:29 +0800 Subject: [PATCH 2/3] update --- docs/en/api/browser-http-api-protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/api/browser-http-api-protocol.md b/docs/en/api/browser-http-api-protocol.md index 98810cdf8e04..46bffc45f1c3 100644 --- a/docs/en/api/browser-http-api-protocol.md +++ b/docs/en/api/browser-http-api-protocol.md @@ -59,7 +59,7 @@ OutPut: Http Status: 204 -### POST http://localhost:12800/browser/perfData/webInteraction +### POST http://localhost:12800/browser/perfData/webInteractions Send a performance data object in JSON format. Since client-js 1.0.0, the following attached metrics are reported. From 593ae894b8a4b9bd2ca15f9bab0e5fd5250d41f8 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 21 Jan 2025 17:01:35 +0800 Subject: [PATCH 3/3] fix --- docs/en/api/browser-http-api-protocol.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/api/browser-http-api-protocol.md b/docs/en/api/browser-http-api-protocol.md index 46bffc45f1c3..3e3b62697131 100644 --- a/docs/en/api/browser-http-api-protocol.md +++ b/docs/en/api/browser-http-api-protocol.md @@ -36,7 +36,7 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204 ### POST http://localhost:12800/browser/perfData/webVitals @@ -57,7 +57,7 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204 ### POST http://localhost:12800/browser/perfData/webInteractions @@ -76,7 +76,7 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204 ### POST http://localhost:12800/browser/perfData/resources @@ -99,7 +99,7 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204 ## Error Log Report @@ -142,7 +142,7 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204 ### POST http://localhost:12800/browser/errorLog @@ -167,4 +167,4 @@ Input: OutPut: -Http Status: 204 +HTTP Status: 204