mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
43 lines
1.6 KiB
PHP
43 lines
1.6 KiB
PHP
<?php
|
||
|
||
namespace app\admin\scheme;
|
||
|
||
use app\common\scheme\BaseScheme;
|
||
use app\common\scheme\attribute\Table;
|
||
use app\common\scheme\attribute\Field;
|
||
use app\common\scheme\attribute\Component;
|
||
use app\common\scheme\attribute\Index;
|
||
|
||
#[Table(name: 'ul_xhprof_run_watch', comment: 'XHProf 采样与监控规则命中聚合(导入时物化)')]
|
||
#[Index(columns: ['watch_id', 'create_time'], name: 'idx_watch_time', type: 'NORMAL')]
|
||
#[Index(columns: ['run_id'], name: 'idx_run_id', type: 'NORMAL')]
|
||
class XhprofRunWatch extends BaseScheme
|
||
{
|
||
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
||
public $id;
|
||
|
||
#[Field(type: 'int', length: 11, default: '0', unsigned: true, comment: '采样记录ID(ul_xhprof_run.id)')]
|
||
#[Component(type: 'text', options: [])]
|
||
public $run_id;
|
||
|
||
#[Field(type: 'int', length: 11, default: '0', unsigned: true, comment: '监控规则ID(ul_xhprof_watch.id)')]
|
||
#[Component(type: 'text', options: [])]
|
||
public $watch_id;
|
||
|
||
#[Field(type: 'int', length: 11, default: '0', comment: '命中边次数和')]
|
||
#[Component(type: 'text', options: [])]
|
||
public $ct;
|
||
|
||
#[Field(type: 'bigint', default: '0', comment: '命中耗时合计(微秒)')]
|
||
#[Component(type: 'text', options: [])]
|
||
public $wt_sum;
|
||
|
||
#[Field(type: 'bigint', default: '0', comment: '命中单次最大耗时(微秒)')]
|
||
#[Component(type: 'text', options: [])]
|
||
public $wt_max;
|
||
|
||
#[Field(type: 'int', length: 11, unsigned: true, comment: '入库时间戳')]
|
||
#[Component(type: 'date', options: [])]
|
||
public $create_time;
|
||
}
|