新功能(服务监控API): 服务监控API

pull/21/head
李强 2021-04-24 12:47:28 +08:00
parent f804d45bed
commit ff5706af53
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class MonitorModelViewSet(CustomModelViewSet):
"cpu": {
"total": int(data.get('cpu_num'), 0),
"used": "", # cpu核心 可不传如指cpu当前主频该值可以传
"rate": float(data.get('cpu_sys', 0)),
"rate": float(data.get('cpu_sys', 0)) / 100,
"unit": "核心", # 默认单位 核心
},
"memory": {