mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(log): 新增 ul_debug_log_position 表(migration+scheme+model)
This commit is contained in:
27
app/admin/model/DebugLogPosition.php
Normal file
27
app/admin/model/DebugLogPosition.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model;
|
||||
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
/**
|
||||
* @property int $id 主键ID
|
||||
* @property string $node_id 节点ID(区分不同采集节点)
|
||||
* @property string $file_path 日志文件绝对路径
|
||||
* @property int $inode 文件 inode,用于检测日志轮转
|
||||
* @property int $offset 上次读取到的字节偏移
|
||||
* @property int $last_read_time 上次读取时间戳
|
||||
* @property string $last_line_hash 上次最后一行的 md5 哈希(容错校验)
|
||||
* @property int $parse_fail_count 解析失败累计次数
|
||||
* @property string $parse_fail_samples 解析失败样本行(最多保留若干条)
|
||||
* @property int $create_time 创建时间戳
|
||||
* @property int $update_time 更新时间戳
|
||||
*/
|
||||
class DebugLogPosition extends TimeModel
|
||||
{
|
||||
|
||||
protected $name = "debug_log_position";
|
||||
|
||||
protected $deleteTime = false;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user