/api/health/
Метод возвращает информацию о серверном железе, на котором развернут текущий инстанс
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "",
"response": {
"health": true,
"env": "testing",
"version": "1.3.0",
"dependencies": [],
"metrics": {
"issues_24h": 100,
"rpm": 65.27,
"rps": 1.09
},
"hardware": {
"total": {
"cpu": 12.1,
"memory": {
"total": 5.76,
"available": 3.26
},
"disk": {
"total": 48.05,
"used": 29.87,
"free": 15.98
}
},
"proc": [
{
"name": "gunicorn",
"cpu": 0,
"memoryPercent": 1.08
},
{
"name": "gunicorn",
"cpu": 0.6,
"memoryPercent": 2.86
},
{
"name": "gunicorn",
"cpu": 0.7,
"memoryPercent": 3.05
},
{
"name": "gunicorn",
"cpu": 0.5,
"memoryPercent": 3.09
}
]
}
},
"preparingsTime": 6.671
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Authentication credentials were not provided.",
"response": {
"detail": "Authentication credentials were not provided."
},
"preparingsTime": 0.016
}
Loading...