Conversation
- Add new API endpoint for getting instance overview statistics - Implement GetInstanceOverviewStatistics function in statistic controller - Update router to include new endpoint - Add placeholder implementation for community edition
- Add new API endpoint: GET /v1/statistic/instances/resource_overview_statistics - This endpoint provides statistics on instance average score, high priority SQL count, and pending workflow count - Update API documentation in docs.go, swagger.json, and swagger.yaml
PR Reviewer Guide 🔍(Review updated until commit 831c075)
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
- Add jdk/ directory to .gitignore file - This change helps to prevent JDK-related files from being tracked by git
|
Persistent review updated to latest commit 831c075 |
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
关联的 issue
https://github.com/actiontech/sqle-ee/issues/2321
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
新增GET /statistic/instances/resource_overview_statistics接口
添加实例概览统计请求和响应结构体
增加社区版不支持统计的桩函数
更新API文档及Swagger配置文件
Changes walkthrough 📝
app.go
新增接口路由调用sqle/api/app.go
statistic.go
新增统计接口实现sqle/api/controller/v1/statistic.go
statistic_ce.go
新增统计接口桩函数sqle/api/controller/v1/statistic_ce.go
docs.go
更新文档添加新接口定义sqle/docs/docs.go
swagger.json
更新swagger.json添加新接口sqle/docs/swagger.json
swagger.yaml
更新swagger.yaml添加新接口sqle/docs/swagger.yaml