增加获取各项监控的单独api

This commit is contained in:
Sun
2024-01-04 12:08:39 +08:00
parent d3e3cf5d58
commit baf64a9272
7 changed files with 102 additions and 5 deletions
+3
View File
@@ -15,5 +15,8 @@ func InitMonitorRouter(router *gin.RouterGroup) {
rPublic := router.Group("", middleware.PublicModeInterceptor)
{
rPublic.POST("/system/monitor/getAll", api.GetAll)
rPublic.POST("/system/monitor/getCpuState", api.GetCpuState)
rPublic.POST("/system/monitor/getDiskStateByPath", api.GetDiskStateByPath)
rPublic.POST("/system/monitor/getMemonyState", api.GetMemonyState)
}
}