@RestController @RequestMapping(value="/node/ssh_command_log") @Feature(cls=SSH_COMMAND_LOG) public class CommandLogController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
CommandLogController(CommandExecLogService commandExecLogService) |
Modifier and Type | Method and Description |
---|---|
String |
batchList(String commandId,
String batchId)
命令执行记录
|
String |
del(String id)
删除日志记录
|
void |
downloadLog(String logId)
下载日志
|
String |
log(String id,
int line)
获取日志
|
String |
page()
分页获取命令信息
|
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 CommandLogController(CommandExecLogService commandExecLogService)
@RequestMapping(value="list", method=POST, produces="application/json") @Feature(method=LIST) public String page()
@RequestMapping(value="del", method=POST, produces="application/json") @Feature(method=DEL) public String del(String id)
id
- id@GetMapping(value="batch_list", produces="application/json") @Feature(method=LIST) public String batchList(@ValidatorItem String commandId, @ValidatorItem String batchId)
commandId
- 命令IDbatchId
- 批次ID@RequestMapping(value="log", method=POST, produces="application/json") @Feature(method=LIST) public String log(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e") String id, @ValidatorItem(value=POSITIVE_INTEGER,msg="line") int line)
id
- idline
- 需要获取的行号Copyright © 2017–2022. All rights reserved.