查询日志 - [DONE] - [Levin]
GET
/opt_logs
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
current
integer <int64>
当前页码
默认值:
1
示例值:
1
size
integer <int64>
分页大小
默认值:
20
示例值:
20
column
string
排序字段
示例值:
id
asc
boolean
排序规则
默认值:
true
示例值:
true
httpMethod
string
HTTP 请求方式
platform
string
请求平台
status
boolean
日志状态
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9000/opt_logs'
返回响应
🟢200成功
application/json
Body
No schema defined
示例
{
"records": [
{
"tenantId": 0,
"tenantCode": "",
"ip": "",
"location": "",
"trace": "",
"module": "",
"description": "",
"action": "",
"uri": "",
"httpMethod": "",
"request": "",
"response": "",
"message": "",
"status": false,
"startTime": {
"seconds": 0,
"nanos": 0
},
"endTime": {
"seconds": 0,
"nanos": 0
},
"duration": 0,
"browser": "",
"engine": "",
"os": "",
"platform": "",
"createdBy": 0,
"createdName": "",
"token": "",
"id": 0
}
],
"total": 0,
"size": 0,
"current": 0,
"orders": [
{
"column": "",
"asc": false
}
],
"optimizeCountSql": false,
"searchCount": false,
"optimizeJoinOfCountSql": false,
"maxLimit": 0,
"countId": ""
}