mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(nginx-log): NginxLogStatAggregate 定时任务 + timer config 注册
This commit is contained in:
20
app/tools/controller/timer/NginxLogStatAggregate.php
Normal file
20
app/tools/controller/timer/NginxLogStatAggregate.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\tools\controller\timer;
|
||||
|
||||
use base\tools\controller\timer\NginxLogStatAggregateBase;
|
||||
|
||||
/**
|
||||
* nginx 访问日志按小时聚合定时任务(App 入口类).
|
||||
*
|
||||
* 框架路由 /tools/timer.NginxLogStatAggregate/do 与 /tools/timer.NginxLogStatAggregate/execute
|
||||
* 均通过本类入口实例化(依赖倒置:定时器框架/路由系统直接调本类,不调 Base)。
|
||||
*
|
||||
* 业务侧如需定制聚合行为(如改默认窗口策略、加业务过滤、调整并发等),
|
||||
* 重写本类对应方法即可拦截,无需改动 extend/base/。
|
||||
*/
|
||||
class NginxLogStatAggregate extends NginxLogStatAggregateBase
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user