Files
ulthon_admin/extend/base/admin/model/SystemHostBase.php
augushong 90e584f5a1 feat(timer): 新增定时器配置、日志和主机的后台管理界面
T10: TimerConfig CURD - task management with run_type/status editing,
     manual trigger button, task_name read-only, no add/delete
T11: TimerLog CURD - read-only log viewer with filters and color badges
T12: Host list enhanced - is_master column, setMaster button
2026-05-26 18:33:43 +08:00

32 lines
932 B
PHP

<?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 int $is_master 是否主节点 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' => '在线'];
public const SELECT_LIST_IS_MASTER = ['0' => '从节点', '1' => '主节点'];
}