Files
ulthon_admin/app/admin/model/XhprofRunWatch.php

35 lines
868 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\admin\model;
use app\common\model\TimeModel;
/**
* XHProf 采样与监控规则命中聚合(导入时物化)
*
* @property int $id 主键ID
* @property int $run_id 采样记录IDul_xhprof_run.id
* @property int $watch_id 监控规则IDul_xhprof_watch.id
* @property int $ct 命中边次数和
* @property int $wt_sum 命中耗时合计(微秒)
* @property int $wt_max 命中单次最大耗时(微秒)
* @property int $create_time 入库时间戳
*/
class XhprofRunWatch extends TimeModel
{
protected $name = "xhprof_run_watch";
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');
}
}