Skip to content

Commit 70abbb5

Browse files
Merge pull request #23 from shadab-mohammad-oracle/patch-5
Update README.md
2 parents c3f660c + 1b63454 commit 70abbb5

File tree

1 file changed

+84
-2
lines changed

1 file changed

+84
-2
lines changed

README.md

Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,91 @@ http://localhost:8000
5252
### 6. API Usage via Curl/CLI Example:
5353
```bash
5454
curl -u admin:change_this -X POST http://localhost:8000/api/test-latency \
55-
-F dbtype=postgresql -F host=localhost -F port=5432 -F username=postgres -F password=yourpassword -F database=postgres -F interval=1 -F period=10
55+
-d dbtype=mysql -d host=localhost -d port=3390 -d username=testuser -d password="YourPassword!##" -d database=testdb -d interval=1 -d period=10 | jq .
5656
```
57-
- API returns JSON, suitable for automation and CI.
57+
```
58+
59+
% Total % Received % Xferd Average Speed Time Time Time Current
60+
Dload Upload Total Spent Left Speed
61+
100 1260 100 1145 100 115 107 10 0:00:11 0:00:10 0:00:01 259
62+
{
63+
"success": true,
64+
"error": null,
65+
"latency_stats": {
66+
"p99": 65.00130997534143,
67+
"p90": 64.45847470022272,
68+
"avg": 59.44308740145061,
69+
"stddev": 3.661004661748353,
70+
"mean": 59.44308740145061,
71+
"runs": 10
72+
},
73+
"details": [
74+
{
75+
"timestamp": "2025-07-04 01:18:22",
76+
"latency_ms": 61.802583004464395,
77+
"success": true,
78+
"error": null
79+
},
80+
{
81+
"timestamp": "2025-07-04 01:18:23",
82+
"latency_ms": 61.06654200993944,
83+
"success": true,
84+
"error": null
85+
},
86+
{
87+
"timestamp": "2025-07-04 01:18:24",
88+
"latency_ms": 64.39145799959078,
89+
"success": true,
90+
"error": null
91+
},
92+
{
93+
"timestamp": "2025-07-04 01:18:25",
94+
"latency_ms": 53.58212499413639,
95+
"success": true,
96+
"error": null
97+
},
98+
{
99+
"timestamp": "2025-07-04 01:18:26",
100+
"latency_ms": 65.06162500591017,
101+
"success": true,
102+
"error": null
103+
},
104+
{
105+
"timestamp": "2025-07-04 01:18:27",
106+
"latency_ms": 57.83200000587385,
107+
"success": true,
108+
"error": null
109+
},
110+
{
111+
"timestamp": "2025-07-04 01:18:29",
112+
"latency_ms": 54.59125000925269,
113+
"success": true,
114+
"error": null
115+
},
116+
{
117+
"timestamp": "2025-07-04 01:18:30",
118+
"latency_ms": 57.854083002894185,
119+
"success": true,
120+
"error": null
121+
},
122+
{
123+
"timestamp": "2025-07-04 01:18:31",
124+
"latency_ms": 60.93537498963997,
125+
"success": true,
126+
"error": null
127+
},
128+
{
129+
"timestamp": "2025-07-04 01:18:32",
130+
"latency_ms": 57.31383299280424,
131+
"success": true,
132+
"error": null
133+
}
134+
]
135+
}
136+
```
137+
138+
![Screenshot 2025-07-04 at 1 20 33 AM](https://github.com/user-attachments/assets/30223aff-71fc-459e-adfb-1a4cacfbf6a0)
139+
58140

59141
---
60142

0 commit comments

Comments
 (0)