-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapiAuthCurl.md.m
More file actions
100 lines (88 loc) · 2.27 KB
/
apiAuthCurl.md.m
File metadata and controls
100 lines (88 loc) · 2.27 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
$ curl -H "Authorization: Bearer cu_a2c51f0c88ee44ae8f7c1fc506773b87" -H "X-Checkly-Account: 6cd9836c-6969-49b0-8e09-611c7775c7b4" https://api.checklyhq.com/v1/checks
curl -H "X-Checkly-Account: 6cd9836c-6969-49b0-8e09-611c7775c7b4" -H "Authorization: Bearer cu_a2c51f0c88ee44ae8f7c1fc506773b87" https://api.checklyhq.com/v1/checks
Reporting, filtered to checks tagged 'mac'
```bash
curl --request GET \
--url 'https://api.checklyhq.com/v1/reporting?quickRange=last24Hrs&filterByTags=mac&deactivated=false' \
--header 'Authorization: Bearer cu_a2c51f0c88ee44ae8f7c1fc506773b87' \
--header 'accept: application/json' \
--header 'x-checkly-account: 6cd9836c-6969-49b0-8e09-611c7775c7b4'
```
results:
```json
[
{
"name": "top-sellers.spec.ts",
"checkId": "bd9d4ad4-3cbc-44a4-b07d-d738c3887e16",
"checkType": "BROWSER",
"deactivated": false,
"tags": [
"mac"
],
"aggregate": {
"successRatio": 100,
"avg": 5378,
"p95": 6634,
"p99": 8384
}
},
{
"name": "web-shop.spec.ts",
"checkId": "4f277efa-6893-4ade-85e6-9e1024523b42",
"checkType": "BROWSER",
"deactivated": false,
"tags": [
"mac"
],
"aggregate": {
"successRatio": 100,
"avg": 3805,
"p95": 4377,
"p99": 4867
}
}
]
```
```bash
curl --request GET \
--url 'https://api.checklyhq.com/v1/analytics/browser-checks/bd9d4ad4-3cbc-44a4-b07d-d738c3887e16?quickRange=lastMonth&metrics=availability&limit=10&page=1' \
--header 'Authorization: Bearer cu_a2c51f0c88ee44ae8f7c1fc506773b87' \
--header 'accept: application/json' \
--header 'x-checkly-account: 6cd9836c-6969-49b0-8e09-611c7775c7b4'
```
```json
{
"checkId": "bd9d4ad4-3cbc-44a4-b07d-d738c3887e16",
"name": "top-sellers.spec.ts",
"checkType": "BROWSER",
"activated": true,
"muted": false,
"frequency": 10,
"from": "2025-01-01T00:00:00.000Z",
"to": "2025-01-31T23:59:59.999Z",
"tags": [
"mac"
],
"series": [
{
"data": [
{
"total": 4464,
"success": 4464,
"availability": 100
}
]
}
],
"metadata": {
"availability": {
"unit": "percentage",
"label": "Availability"
}
},
"pagination": {
"page": 1,
"limit": 10
}
}
```