@Controller @RequestMapping(value="/monitor") @Feature(cls=MONITOR) public class MonitorListController extends BaseServerController
nodeService
Constructor and Description |
---|
MonitorListController() |
Modifier and Type | Method and Description |
---|---|
String |
changeStatus(String id,
String status,
String type)
开启或关闭监控
|
String |
deleteMonitor(String id)
删除列表
|
String |
edit(String id)
修改监控
|
String |
getMonitorList()
展示监控列表
|
String |
list()
展示监控页面
|
String |
updateMonitor(String id,
String name,
String notifyUser)
增加或修改监控
|
doPage, getNode, getUser, getUserModel, remove, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
@RequestMapping(value="list.html", method=GET, produces="text/html") @Feature(method=LIST) public String list()
@RequestMapping(value="edit.html", method=GET, produces="text/html") @Feature(method=EDIT) public String edit(String id)
@RequestMapping(value="getMonitorList", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @Feature(method=LIST) public String getMonitorList()
@RequestMapping(value="deleteMonitor", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @OptLog(value=DelMonitor) @Feature(method=DEL) public String deleteMonitor(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u5220\u9664\u5931\u8d25")) String id) throws SQLException
SQLException
@RequestMapping(value="updateMonitor", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @OptLog(value=EditMonitor) @Feature(method=EDIT) public String updateMonitor(String id, @ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="\u76d1\u63a7\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a")) String name, String notifyUser)
@RequestMapping(value="changeStatus", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @OptLog(value=ChangeStatusMonitor) @Feature(method=EDIT) public String changeStatus(@ValidatorConfig(value=@ValidatorItem(value=NOT_BLANK,msg="id\u4e0d\u80fd\u4e3a\u7a7a")) String id, String status, String type)
Copyright © 2017–2019. All rights reserved.