Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
1b97a77c
Commit
1b97a77c
authored
Aug 25, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常日志前端展示添加
parent
35bcc3ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
doc/api.md
doc/api.md
+27
-5
No files found.
doc/api.md
View file @
1b97a77c
...
@@ -15,6 +15,12 @@ object|对象类型|{"name":"zhang3"}
...
@@ -15,6 +15,12 @@ object|对象类型|{"name":"zhang3"}
arrays|数组类型|[{"name":"zhang3"},{"name":"zhang2"}]
arrays|数组类型|[{"name":"zhang3"},{"name":"zhang2"}]
## 日志交互方式
**消息系统**
默认采用RabbitMq作为消息中间件,向指定队列提交日志消息体。
**HTTP REST**
对外提供http接口提交rest消息体。
## 平台用户操作日志业务
## 平台用户操作日志业务
### 查询平台用户操作日志业务列表
### 查询平台用户操作日志业务列表
...
@@ -147,6 +153,10 @@ dict|object|字典对象
...
@@ -147,6 +153,10 @@ dict|object|字典对象
**内容类型:**
application/json;charset=utf-8
**内容类型:**
application/json;charset=utf-8
**请求方式二:**
RabbitMQ
**队列名称:**
OPERATION_LOG_QUEUE
**简要描述:**
保存平台用户操作日志业务
**简要描述:**
保存平台用户操作日志业务
**请求参数:**
**请求参数:**
...
@@ -362,7 +372,7 @@ dict|object|字典对象
...
@@ -362,7 +372,7 @@ dict|object|字典对象
}
}
```
```
### 保存
更新
访问日志
### 保存访问日志
**请求URL:**
access/log/save
**请求URL:**
access/log/save
...
@@ -370,6 +380,10 @@ dict|object|字典对象
...
@@ -370,6 +380,10 @@ dict|object|字典对象
**内容类型:**
application/json;charset=utf-8
**内容类型:**
application/json;charset=utf-8
**请求方式二:**
RabbitMQ
**队列名称:**
ACCESS_LOG_QUEUE
**简要描述:**
保存访问日志
**简要描述:**
保存访问日志
**请求参数:**
**请求参数:**
...
@@ -404,14 +418,14 @@ schemaData|String|否|协议
...
@@ -404,14 +418,14 @@ schemaData|String|否|协议
"appName":"base-platform",
"appName":"base-platform",
"hostName":"l5emnm",
"hostName":"l5emnm",
"targetServer":"device-platform",
"targetServer":"device-platform",
"logLevel":"
9s9bk2
",
"logLevel":"
DEBUG
",
"requestIp":"192.168.0.96",
"requestIp":"192.168.0.96",
"method":"post",
"method":"post",
"ua":"xxx",
"ua":"xxx",
"uri":"/xxx/xx",
"uri":"/xxx/xx",
"requestData":"mmbhs8",
"requestData":"mmbhs8",
"responseData":"jzlxtk",
"responseData":"jzlxtk",
"logTime":"2022-08-25",
"logTime":"2022-08-25
16:22:44
",
"requestTime":"2022-08-25",
"requestTime":"2022-08-25",
"responseTime":"2022-08-25",
"responseTime":"2022-08-25",
"duration":12,
"duration":12,
...
@@ -596,6 +610,10 @@ dict|object|字典对象
...
@@ -596,6 +610,10 @@ dict|object|字典对象
**内容类型:**
application/json;charset=utf-8
**内容类型:**
application/json;charset=utf-8
**请求方式二:**
RabbitMQ
**队列名称:**
BIZ_LOG_QUEUE
**简要描述:**
保存业务日志
**简要描述:**
保存业务日志
**请求参数:**
**请求参数:**
...
@@ -610,7 +628,7 @@ userCode|String|否|用户唯一标识
...
@@ -610,7 +628,7 @@ userCode|String|否|用户唯一标识
deviceCode|String|否|设备唯一标识
deviceCode|String|否|设备唯一标识
eventTopic|String|否|记录埋点的事件主题,方便实时计算或同步进行数据筛选
eventTopic|String|否|记录埋点的事件主题,方便实时计算或同步进行数据筛选
eventTopicName|String|否|记录埋点中文名称
eventTopicName|String|否|记录埋点中文名称
msg|String|否|事件参数
,json
msg|String|否|事件参数
logTime|Date|是|日志产生时间
logTime|Date|是|日志产生时间
**请求样例:**
**请求样例:**
...
@@ -840,7 +858,11 @@ dict|object|字典对象
...
@@ -840,7 +858,11 @@ dict|object|字典对象
**内容类型:**
application/json;charset=utf-8
**内容类型:**
application/json;charset=utf-8
**简要描述:**
保存或更新异常日志:id为空时为新增保存,否则为更新提交
**请求方式二:**
RabbitMQ
**队列名称:**
ERROR_LOG_QUEUE
**简要描述:**
保存异常日志
**请求参数:**
**请求参数:**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment