@RestController @RequestMapping(value="/monitor") @Feature(cls=MONITOR) public class MonitorListController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
MonitorListController(MonitorService monitorService,
DbMonitorNotifyLogService dbMonitorNotifyLogService,
UserService userService,
ProjectInfoCacheService projectInfoCacheService) |
Modifier and Type | Method and Description |
---|---|
String |
deleteMonitor(String id)
删除列表
|
String |
getMonitorList()
展示监控列表
|
String |
updateMonitor(String id,
String name,
String execCron,
String notifyUser,
String webhook)
增加或修改监控
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, 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
public MonitorListController(MonitorService monitorService, DbMonitorNotifyLogService dbMonitorNotifyLogService, UserService userService, ProjectInfoCacheService projectInfoCacheService)
@RequestMapping(value="getMonitorList", method=POST, produces="application/json") @Feature(method=LIST) public String getMonitorList()
@RequestMapping(value="deleteMonitor", method=POST, produces="application/json") @Feature(method=DEL) public String deleteMonitor(@ValidatorItem(value=NOT_BLANK,msg="\u5220\u9664\u5931\u8d25") String id) throws SQLException
id
- idSQLException
@RequestMapping(value="updateMonitor", method=POST, produces="application/json") @Feature(method=EDIT) public String updateMonitor(String id, @ValidatorItem(value=NOT_BLANK,msg="\u76d1\u63a7\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a") String name, @ValidatorItem(msg="\u8bf7\u914d\u7f6e\u76d1\u63a7\u5468\u671f") String execCron, String notifyUser, String webhook)
id
- idname
- namenotifyUser
- userCopyright © 2017–2022. All rights reserved.