查询服务日志列表
测试环境
http://140.207.166.210:9030/gateway/torch
测试环境
http://140.207.166.210:9030/gateway/torch
GET
/log/list
请求参数
Authorization
在 header 添加参数
Authorization
示例:
Authorization: ********************
Query 参数
current
integer
当前页
size
integer
页大小
startDate
integer
开始日期-毫秒戳
endDate
integer
结束日期-毫秒戳
level
integer
报警级别
type
integer
可选
companyId
integer
公司ID
pids
string
产品ID
keyword
string
SN关键词
示例代码
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://140.207.166.210:9030/gateway/torch/log/list?current&size&startDate&endDate' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
分页结果
code
integer | null
可选
data
object (Page«EvtLog»)
分页结果
records
array[object (EvtLog) {7}] | null
可选
total
integer | null
可选
size
integer | null
可选
current
integer | null
可选
orders
array[object (OrderItem) {2}] | null
可选
optimizeCountSql
boolean | null
可选
isSearchCount
boolean | null
可选
hitCount
boolean | null
可选
countId
string | null
可选
maxLimit
integer | null
可选
message
string | null
可选
示例
{
"code": 0,
"data": {
"records": [
{
"sn": "",
"eventType": "",
"evtTime": "",
"alertLevel": "",
"companyId": 0,
"pid": 0,
"uid": 0
}
],
"total": 0,
"size": 0,
"current": 0,
"orders": [
{
"column": "",
"asc": false
}
],
"optimizeCountSql": false,
"isSearchCount": false,
"hitCount": false,
"countId": "",
"maxLimit": 0
},
"message": ""
}
修改于 2024-06-14 07:34:27