Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fd9f7e31
authored
Nov 07, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[fix] 修改类型
1 parent
381cd44c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
src/main/java/vion/model/monitor/AgentRecord.java
src/main/java/vion/model/monitor/EventRecord.java
src/main/java/vion/model/monitor/AgentRecord.java
View file @
fd9f7e3
package
vion
.
model
.
monitor
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
lombok.Getter
;
import
lombok.Setter
;
import
vion.config.mp.JsonbTypeHandler
;
...
...
@@ -28,25 +27,25 @@ public class AgentRecord {
* cpu信息
*/
@TableField
(
value
=
"cpu_info"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
JsonNode
cpuInfo
;
private
Object
cpuInfo
;
/**
* 内存信息
*/
@TableField
(
value
=
"memory_info"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
JsonNode
memoryInfo
;
private
Object
memoryInfo
;
/**
* 磁盘信息
*/
@TableField
(
value
=
"disk_info"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
JsonNode
diskInfo
;
private
Object
diskInfo
;
/**
* 网络流量
*/
@TableField
(
value
=
"network_info"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
JsonNode
networkInfo
;
private
Object
networkInfo
;
/**
* 启动时间
...
...
src/main/java/vion/model/monitor/EventRecord.java
View file @
fd9f7e3
package
vion
.
model
.
monitor
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
lombok.Getter
;
import
lombok.Setter
;
import
vion.config.mp.JsonbTypeHandler
;
...
...
@@ -64,7 +63,7 @@ public class EventRecord {
* 上报数据
*/
@TableField
(
value
=
"data"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
JsonNode
data
;
private
Object
data
;
@TableField
(
value
=
"create_time"
,
fill
=
FieldFill
.
INSERT
)
private
LocalDateTime
createTime
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment