Appearance
日志中心
RemoteLogService
com.magus.cloud.logcenter.client.api.RemoteLogService
logPage
接口说明
日志分页查询
请求地址
POST /log-center/logs/client/page
请求参数
参数名 | 父级 | 类型 | 是否必须 | 示例值 | 描述 |
---|---|---|---|---|---|
logQuery | Object | com.magus.cloud.logcenter.base.request.LogQuery | |||
keyword | logQuery | String | 0 | 告警 | 关键字 |
from | logQuery | String | 0 | route-id-magus-auth | 来源 |
level | logQuery | String | 0 | WARN | 可用值:INFO,WARN,ERROR |
timeBegin | logQuery | Integer | 0 | 1700125635081 | 开始时间 |
timeEnd | logQuery | Integer | 0 | 1700125835081 | 结束时间 |
category | logQuery | String | 0 | ACCESS | 可用值:ACCESS,OPERATION_AT,OPERATION_MT,SYSTEM,OTHER |
username | logQuery | String | 0 | admin | 用户 |
page | logQuery | String | 0 | string | 页码 |
limit | logQuery | String | 0 | 10 | 页数 |
sort | logQuery | String | 0 | create_date_ | 排序字段 |
dir | logQuery | String | 0 | DESC | 排序 |
响应状态
状态码 | 说明 | schema |
---|---|---|
200 | OK | |
500 | 服务响应异常 | CommonRsp |
响应参数
参数名称 | 父级 | 类型 | 参数说明 |
---|---|---|---|
result | Object | ||
totalPages | result | integer(int32) | |
totalElements | result | integer(int64) | |
size | result | integer(int32) | |
content | result | array | |
id | content | string | |
level | content | string | |
category | content | string | |
from | content | string | |
time | content | integer(int64) | |
username | content | string | |
msg | content | string | |
number | result | integer(int32) | |
sort | result | SortObject | |
empty | sort | boolean | |
sorted | sort | boolean | |
unsorted | sort | boolean | |
first | result | boolean | |
last | result | boolean | |
numberOfElements | result | integer(int32) | |
pageable | result | PageableObject | |
offset | pageable | integer(int64) | |
sort | pageable | SortObject | |
empty | sort | boolean | |
sorted | sort | boolean | |
unsorted | sort | boolean | |
pageSize | pageable | integer(int32) | |
pageNumber | pageable | integer(int32) | |
paged | pageable | boolean | |
unpaged | pageable | boolean | |
empty | result | boolean |
请求示例
{
"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 |
---|---|---|
200 | OK | |
500 | 服务响应异常 | CommonRsp |
响应参数
参数名称 | 父级 | 类型 | 参数说明 |
---|---|---|---|
result | Object | ||
logId | result | String | 日志ID |
content | result | String | 日志数据 |
requestParam | result | String | 请求参数 |
responseData | result | String | 操作后数据 |
请求示例
响应示例
{
"logId": "",
"content": "",
"requestParam": "",
"responseData": ""
}