mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-09-03 22:51:37 +08:00
feat(admin): XHProf 函数监控规则与命中记录
This commit is contained in:
@@ -5,6 +5,8 @@ namespace app\admin\model;
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
/**
|
||||
* XHProf 采样与监控规则命中聚合(导入时物化)
|
||||
*
|
||||
* @property int $id 主键ID
|
||||
* @property int $run_id 采样记录ID(ul_xhprof_run.id)
|
||||
* @property int $watch_id 监控规则ID(ul_xhprof_watch.id)
|
||||
@@ -20,4 +22,13 @@ class XhprofRunWatch extends TimeModel
|
||||
|
||||
protected $deleteTime = false;
|
||||
|
||||
public function run()
|
||||
{
|
||||
return $this->belongsTo('app\admin\model\XhprofRun', 'run_id', 'id');
|
||||
}
|
||||
|
||||
public function watch()
|
||||
{
|
||||
return $this->belongsTo('app\admin\model\XhprofWatch', 'watch_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user