ComputerScienceHouse / ComputerScienceHouse/conditional
Add Healthcheck route
- 主要語言
- Python
- 星號
- 12
- 分支
- 39
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 1
描述
This is a route that connects to the database, connects to ldap, and returns a json blob stating whether or not it can connect.
This should allow us to more reasonably monitor on whether or not conditional is in working order. The route should not be behind auth so datadog can hit it
How I want this to work
```
GET /api/v1/healthcheck
```
That would return 200 only when both ldap and the database connect correctly, and a 5XX range response when they don't. Different 5XX code for ldap down, sql down and both down. Return the json no matter what the status code is.
```json
{
"ldap": {
"status": true,
"server": "stone.csh.rit.edu"
},
"database": {
"status": true,
"server": "mysql.csh.rit.edu"
}
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
No files or tests are named. Start by locating the existing Flask route structure and the LDAP and MySQL connection entry points, then implement the specified GET /api/v1/healthcheck behavior; done means unauthenticated JSON responses distinguish healthy, LDAP-only, database-only, and combined failures with the requested status ranges.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- flask, mysql, python
- 領域
- api, backend, observability
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100