mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 16:13:59 +08:00
19 lines
533 B
Go
19 lines
533 B
Go
package router
|
|
|
|
import (
|
|
v2 "github.com/1Panel-dev/1Panel/agent/app/api/v2"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type RuntimeDiagnosticsRouter struct{}
|
|
|
|
func (s *RuntimeDiagnosticsRouter) InitRouter(Router *gin.RouterGroup) {
|
|
diagnosticsRouter := Router.Group("hosts/diagnostics")
|
|
baseApi := v2.ApiGroupApp.BaseApi
|
|
{
|
|
diagnosticsRouter.GET("/summary", baseApi.LoadRuntimeDiagnosticsSummary)
|
|
diagnosticsRouter.GET("/goroutines", baseApi.LoadRuntimeGoroutines)
|
|
diagnosticsRouter.POST("/profiles", baseApi.CreateRuntimeProfile)
|
|
}
|
|
}
|