feat: log drain (wip)

This commit is contained in:
Andras Bacsai
2023-11-17 00:37:09 +01:00
parent 91e3d33c0b
commit 6c7e091e1b
12 changed files with 315 additions and 88 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Models;
use App\Actions\Server\InstallLogDrain;
use App\Actions\Server\InstallNewRelic;
use App\Enums\ProxyStatus;
use App\Enums\ProxyTypes;
use App\Notifications\Server\Revived;
@@ -296,6 +298,10 @@ class Server extends BaseModel
// }
return true;
}
public function logDrain($type)
{
InstallLogDrain::run($this, $type);
}
public function isFunctional()
{
return $this->settings->is_reachable && $this->settings->is_usable;