From ccc302566a80aeb94aa91e8be0403a2a4d087002 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 15 Aug 2023 21:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B7=AF=E7=94=B1=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E7=BD=91=E7=BB=9C=E5=92=8C=E4=B8=BB=E6=9C=BACPU?= =?UTF-8?q?=E5=86=85=E5=AD=98=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/routes.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/routes/routes.go b/lib/routes/routes.go index 9d78821d..425e0cf0 100644 --- a/lib/routes/routes.go +++ b/lib/routes/routes.go @@ -11,6 +11,8 @@ import ( "ems.agt/features/file" "ems.agt/features/fm" "ems.agt/features/mml" + "ems.agt/features/monitor/monitor" + "ems.agt/features/monitor/psnet" "ems.agt/features/nbi" "ems.agt/features/pm" "ems.agt/features/security" @@ -216,6 +218,16 @@ func init() { // AAAA Register("GET", aaaa.CustomUriAAAASSO, aaaa.GetSSOFromAAAA, nil) + + // 进程网络 + Register("GET", psnet.UriWs, psnet.ProcessWs, nil) + Register("POST", psnet.UriStop, psnet.StopProcess, nil) + + // 主机CPU内存监控 + Register("POST", monitor.UriLoad, monitor.LoadMonitor, nil) + Register("GET", monitor.UriNetOpt, monitor.Netoptions, nil) + Register("GET", monitor.UriIoOpt, monitor.Iooptions, nil) + } // To resolv rest POST/PUT/DELETE/PATCH cross domain