Add Healthcheck route
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 領域
- api, backend, observability
研究方向
未指定檔案或測試。首先定位現有的 Flask 路由結構以及 LDAP 和 MySQL 連線的入口點,然後實作指定的 GET /api/v1/healthcheck 行為;當未經驗證的 JSON 回應能夠使用所要求的狀態碼範圍區分健康狀態、僅 LDAP 故障、僅資料庫故障和組合故障時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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.
{
"ldap": {
"status": true,
"server": "stone.csh.rit.edu"
},
"database": {
"status": true,
"server": "mysql.csh.rit.edu"
}
}
- 主要語言
- Python
- 星號
- 12
- 分支
- 42
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 6
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ComputerScienceHouse/conditional 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 45/100
ComputerScienceHouse/conditional#627 ·
維護者通常 1 天內回覆
-
good first issue
難度 3/5 1-2 天 新手友好度 48/100
ComputerScienceHouse/conditional#607 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
ComputerScienceHouse/conditional#606 ·
維護者通常 1 天內回覆
-
Cache Major Projects Form Until Submission可能已有人在做 @rmamet 於 12 天前認領。 未關閉enhancement feature request good first issue
難度 3/5 1-2 天 新手友好度 58/100
ComputerScienceHouse/conditional#598 · 已指派 2 人 ·
維護者通常 1 天內回覆
-
Major projects cannot be submitted with the same name and repeated skills可能重新可做 關聯的 PR 已關閉且未合併。 未關閉bug good first issue
難度 3/5 1-2 天 新手友好度 55/100
ComputerScienceHouse/conditional#586 ·
維護者通常 1 天內回覆
查看 ComputerScienceHouse/conditional 的全部 Issue
相似的 Issue
-
automated issue report
難度 1/5 1 小時以內 新手友好度 85/100
RapidAI/RapidOCRDocs#119 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 85/100
btclib-org/btclib-node#1833 ·
維護者通常 1 天內回覆
-
IRIS reader: no-data velocity bins (DB_VEL, DB_VELC) returned as 0.0 m/s instead of NaN可能已有人在做 @syedhamidali 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 80/100
elodin-sys/elodin#890 ·
維護者通常 1 天內回覆