mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 10:02:49 +08:00
feat: 增加主机节点表结构代码
This commit is contained in:
28
extend/base/admin/model/SystemHostBase.php
Normal file
28
extend/base/admin/model/SystemHostBase.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace base\admin\model;
|
||||
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
/**
|
||||
* @property int $id ID
|
||||
* @property string $node_id 节点ID
|
||||
* @property string $ip_address IP地址
|
||||
* @property int $status 状态 0:离线,1:在线
|
||||
* @property string $last_heartbeat_at 最后心跳时间
|
||||
* @property string $os_info 系统信息
|
||||
* @property string $php_version PHP版本
|
||||
* @property string $cpu_load CPU负载
|
||||
* @property int $memory_usage 内存占用
|
||||
* @property int $disk_free 磁盘可用空间
|
||||
* @property int $disk_total 磁盘总空间
|
||||
* @property string $create_time 首次运行时间
|
||||
*/
|
||||
class SystemHostBase extends TimeModel
|
||||
{
|
||||
protected $name = 'system_host';
|
||||
|
||||
protected $deleteTime = false;
|
||||
|
||||
public const SELECT_LIST_STATUS = ['0' => '离线', '1' => '在线'];
|
||||
}
|
||||
Reference in New Issue
Block a user