@RestController @RequestMapping(value="/log-read") @Feature(cls=LOG_READ) public class LogReadController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
LogReadController(LogReadServer logReadServer) |
Modifier and Type | Method and Description |
---|---|
String |
del(String id)
删除日志阅读信息
|
String |
list()
日志阅读列表
|
String |
save(com.alibaba.fastjson.JSONObject jsonObject)
编辑日志阅读信息
|
String |
updateCache(com.alibaba.fastjson.JSONObject jsonObject)
更新缓存
|
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 LogReadController(LogReadServer logReadServer)
@PostMapping(value="list", produces="application/json") @Feature(method=LIST) public String list()
@RequestMapping(value="del.json", method=POST, produces="application/json") @Feature(method=DEL) public String del(String id)
id
- 分发id@RequestMapping(value="save.json", method=POST, produces="application/json") @Feature(method=EDIT) public String save(@RequestBody com.alibaba.fastjson.JSONObject jsonObject)
{"projectList":[{"nodeId":"localhost","projectId":"test-jar"}],"name":"11"}
jsonObject
- 参数@RequestMapping(value="update-cache.json", method=POST, produces="application/json") @Feature(method=EDIT) public String updateCache(@RequestBody com.alibaba.fastjson.JSONObject jsonObject)
{"op":"showlog","projectId":"python", "search":true,"useProjectId":"python", "useNodeId":"localhost", "beforeCount":0,"afterCount":10, "head":0,"tail":100,"first":"false", "logFile":"/run.log"}
jsonObject
- 参数Copyright © 2017–2022. All rights reserved.