update: server/getServerLog to stat/getTrafficLog

This commit is contained in:
tokumeikoi
2022-03-05 00:27:43 +08:00
parent d0cab99ae4
commit 98b12205f7
10 changed files with 32 additions and 146 deletions

View File

@ -1,44 +0,0 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use App\Models\ServerLog;
class ResetServerLog extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'reset:serverLog';
/**
* The console command description.
*
* @var string
*/
protected $description = '节点服务器日志重置';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
ServerLog::truncate();
}
}

View File

@ -35,7 +35,6 @@ class Kernel extends ConsoleKernel
$schedule->command('check:ticket')->everyMinute();
// reset
$schedule->command('reset:traffic')->daily();
$schedule->command('reset:serverLog')->quarterly()->at('0:15');
// send
$schedule->command('send:remindMail')->dailyAt('11:30');
// horizon metrics