docs: enhance Health API documentation
This commit is contained in:
parent
28458345b4
commit
facc936fe4
1 changed files with 32 additions and 13 deletions
|
@ -239,19 +239,38 @@ address = ":8080"
|
||||||
```sh
|
```sh
|
||||||
$ curl -s "http://localhost:8080/health" | jq .
|
$ curl -s "http://localhost:8080/health" | jq .
|
||||||
{
|
{
|
||||||
"average_response_time_sec": 0,
|
// Træfɪk PID
|
||||||
"average_response_time": "0",
|
"pid": 2458,
|
||||||
"total_response_time_sec": 0,
|
// Træfɪk server uptime (formated time)
|
||||||
"total_response_time": "0",
|
"uptime": "39m6.885931127s",
|
||||||
"total_count": 0,
|
// Træfɪk server uptime in seconds
|
||||||
"pid": 12861,
|
"uptime_sec": 2346.885931127,
|
||||||
"uptime": "7m12.80607635s",
|
// current server date
|
||||||
"uptime_sec": 432.80607635,
|
"time": "2015-10-07 18:32:24.362238909 +0200 CEST",
|
||||||
"time": "2015-09-22 10:25:16.448023473 +0200 CEST",
|
// current server date in seconds
|
||||||
"unixtime": 1442910316,
|
"unixtime": 1444235544,
|
||||||
"status_code_count": {},
|
// count HTTP response status code in realtime
|
||||||
"total_status_code_count": {},
|
"status_code_count": {
|
||||||
"count": 0
|
"502": 1
|
||||||
|
},
|
||||||
|
// count HTTP response status code since Træfɪk started
|
||||||
|
"total_status_code_count": {
|
||||||
|
"200": 7,
|
||||||
|
"404": 21,
|
||||||
|
"502": 13
|
||||||
|
},
|
||||||
|
// count HTTP response
|
||||||
|
"count": 1,
|
||||||
|
// count HTTP response
|
||||||
|
"total_count": 41,
|
||||||
|
// sum of all response time (formated time)
|
||||||
|
"total_response_time": "35.456865605s",
|
||||||
|
// sum of all response time in seconds
|
||||||
|
"total_response_time_sec": 35.456865605,
|
||||||
|
// average response time (formated time)
|
||||||
|
"average_response_time": "864.8016ms",
|
||||||
|
// average response time in seconds
|
||||||
|
"average_response_time_sec": 0.8648016000000001
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue