新增路由进程网络和主机CPU内存监控

This commit is contained in:
TsMask
2023-08-15 21:38:33 +08:00
parent bfd3be9f03
commit ccc302566a

View File

@@ -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