|
@@ -1,4 +1,5 @@
|
|
|
'use strict';
|
|
|
+const moment = require('moment');
|
|
|
const Schema = require('mongoose').Schema;
|
|
|
const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
@@ -16,6 +17,7 @@ const TopSchema = {
|
|
|
mem: { type: String, required: false }, // 可用物理内存百分比
|
|
|
time: { type: String, required: false, maxLength: 100 }, // 任务启动后到现在所使用的全部CPU时间
|
|
|
command: { type: String, required: false, maxLength: 100 }, // 运行进程所使用的命令
|
|
|
+ date: { type: String, required: false, maxLength: 100, default: moment().format('YYYY-MM-DD') }, // 运行进程所使用的命令
|
|
|
};
|
|
|
|
|
|
|