-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01 - Performance Endpoint Try - starrocks.bru
59 lines (51 loc) · 1.32 KB
/
01 - Performance Endpoint Try - starrocks.bru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
meta {
name: 01 - Performance Endpoint Try - starrocks
type: http
seq: 3
}
post {
url: {{URL}}/performance
body: json
auth: none
}
headers {
Content-Type: application/json
X-API-Email: {{X-API-Email}}
X-API-Key: {{X-API-Key}}
BTT-Key: {{BTT-Key}}
}
body:json {
{
"site":"dsg2",
"start":1725285600,
"end":1725892440,
"dataType":"rum",
"origin":[],
"dataColumns":["onload","dns","tcp","basePage","dom","firstByte","ssl","redirect","ttDomInt","ttDomCont","pageHits","timeToInteractive","largestContentfulPaint","totalBlockingTime","firstInputDelayDuration","cumulativeLayoutShift","firstContentfulPaint","visitors"],
"group":[],
"order":[],
"sort":[],
"limit":50000,
"pageName":["Product"],
"pageGroup":["All Groups"],
"device":["Desktop"],
"percentile":"75",
"performanceMetric":"onload",
"salesType":"sales",
"avgType":"percentile",
"calendarType":"calendar",
"tzOffset":"-4",
"botTraffic":"excludeBots",
"useGeniusCache":false,
"debug":true
}
}
script:post-response {
////Output Response body contents
let thisVar = res.body.data;
console.log(thisVar);
// Variables and JSON Keys are case sensitiv!
bru.setVar("responseA", thisVar);
//Output Response body contents
console.log(bru.getVar("responseA"));
}