Skip to content

日志中心

RemoteLogService

com.magus.cloud.logcenter.client.api.RemoteLogService

logPage

接口说明

日志分页查询

请求地址

POST /log-center/logs/client/page

请求参数

参数名父级类型是否必须示例值描述
logQueryObjectcom.magus.cloud.logcenter.base.request.LogQuery
keywordlogQueryString0告警关键字
fromlogQueryString0route-id-magus-auth来源
levellogQueryString0WARN可用值:INFO,WARN,ERROR
timeBeginlogQueryInteger01700125635081开始时间
timeEndlogQueryInteger01700125835081结束时间
categorylogQueryString0ACCESS可用值:ACCESS,OPERATION_AT,OPERATION_MT,SYSTEM,OTHER
usernamelogQueryString0admin用户
pagelogQueryString0string页码
limitlogQueryString010页数
sortlogQueryString0create_date_排序字段
dirlogQueryString0DESC排序

响应状态

状态码说明schema
200OK
500服务响应异常CommonRsp

响应参数

参数名称父级类型参数说明
resultObject
totalPagesresultinteger(int32)
totalElementsresultinteger(int64)
sizeresultinteger(int32)
contentresultarray
idcontentstring
levelcontentstring
categorycontentstring
fromcontentstring
timecontentinteger(int64)
usernamecontentstring
msgcontentstring
numberresultinteger(int32)
sortresultSortObject
emptysortboolean
sortedsortboolean
unsortedsortboolean
firstresultboolean
lastresultboolean
numberOfElementsresultinteger(int32)
pageableresultPageableObject
offsetpageableinteger(int64)
sortpageableSortObject
emptysortboolean
sortedsortboolean
unsortedsortboolean
pageSizepageableinteger(int32)
pageNumberpageableinteger(int32)
pagedpageableboolean
unpagedpageableboolean
emptyresultboolean

请求示例

{
  "keyword": "",
  "from": "",
  "level": "",
  "timeBegin": 0,
  "timeEnd": 0,
  "category": "",
  "username": "",
  "page": "",
  "limit": "",
  "sort": "",
  "dir": ""
}

响应示例

{
  "totalPages": 0,
  "totalElements": 0,
  "size": 0,
  "content": [
    {
      "id": "",
      "level": "",
      "category": "",
      "from": "",
      "time": 0,
      "username": "",
      "msg": ""
    }
  ],
  "number": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "first": true,
  "last": true,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "pageSize": 0,
    "pageNumber": 0,
    "paged": true,
    "unpaged": true
  },
  "empty": true
}

logDetail

接口说明

日志内容详情查询

请求地址

POST /log-center/logs/client/{logId}

请求参数

参数名父级类型是否必须示例值描述

响应状态

状态码说明schema
200OK
500服务响应异常CommonRsp

响应参数

参数名称父级类型参数说明
resultObject
logIdresultString日志ID
contentresultString日志数据
requestParamresultString请求参数
responseDataresultString操作后数据

请求示例

响应示例

{
  "logId": "",
  "content": "",
  "requestParam": "",
  "responseData": ""
}