refactor: unify kubernetes_ table prefix, merge CI/CD models, LLM session support
- Rename container_clusters → kubernetes_clusters, container_topology_layouts → kubernetes_topology_layouts - LLM: add session_id to chat history for multi-turn conversation support - CI/CD: add pipeline_id, deploy_type, artifact_url, k8s_cluster_id to AppRelease - Cleanup: remove deprecated playbook handler, simplify automation models - Database: optimize auto-migrate model list - Frontend: AIOps assistant improvements, api.ts updates
This commit is contained in:
1 parent
9365c1e9db
commit
732974d152
14 files changed
+121
-474
No files matched your search
@@ -419,19 +419,6 @@ func Register(r *gin.Engine, db *gorm.DB, log *zap.Logger, cfg *config.Config, c
|
||||
scripts.POST("/:id/execute", automationHandler.ExecuteScript)
|
||||
}
|
||||
|
||||
playbooks := authorized.Group("/playbooks")
|
||||
{
|
||||
playbooks.GET("", automationHandler.ListPlaybooks)
|
||||
playbooks.POST("", automationHandler.CreatePlaybook)
|
||||
playbooks.GET("/:id", automationHandler.GetPlaybook)
|
||||
playbooks.PUT("/:id", automationHandler.UpdatePlaybook)
|
||||
playbooks.DELETE("/:id", automationHandler.DeletePlaybook)
|
||||
playbooks.POST("/:id/execute", automationHandler.ExecutePlaybook)
|
||||
}
|
||||
|
||||
// 任务执行记录(脚本/定时任务执行历史)
|
||||
authorized.GET("/task-executions", automationHandler.ListExecutions)
|
||||
|
||||
// Ansible 自动化路由 // Logan.Li
|
||||
ansibleHandler := handlers.NewAnsibleHandler(db)
|
||||
ansible := authorized.Group("/ansible")
|
||||
@@ -457,6 +444,9 @@ func Register(r *gin.Engine, db *gorm.DB, log *zap.Logger, cfg *config.Config, c
|
||||
ansible.GET("/match-hosts", ansibleHandler.MatchHosts)
|
||||
}
|
||||
|
||||
// 任务执行记录(脚本/定时任务执行历史,不含 Ansible)
|
||||
authorized.GET("/task-executions", automationHandler.ListExecutions)
|
||||
|
||||
// 日志监控路由 // Logan.Li
|
||||
logHandler := handlers.NewLogHandler(db)
|
||||
logs := authorized.Group("/logs")
|
||||
|
||||
Reference in new issue
Block a user