2023-03-30 13:52:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2023-06-15 07:15:41 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-07-09 08:45:10 +00:00
|
|
|
use OpenApi\Attributes as OA;
|
2023-06-15 07:15:41 +00:00
|
|
|
|
2024-07-09 08:45:10 +00:00
|
|
|
#[OA\Schema(
|
|
|
|
description: 'Server Settings model',
|
|
|
|
type: 'object',
|
|
|
|
properties: [
|
|
|
|
'id' => ['type' => 'integer'],
|
|
|
|
'cleanup_after_percentage' => ['type' => 'integer'],
|
|
|
|
'concurrent_builds' => ['type' => 'integer'],
|
|
|
|
'dynamic_timeout' => ['type' => 'integer'],
|
|
|
|
'force_disabled' => ['type' => 'boolean'],
|
|
|
|
'is_build_server' => ['type' => 'boolean'],
|
|
|
|
'is_cloudflare_tunnel' => ['type' => 'boolean'],
|
|
|
|
'is_jump_server' => ['type' => 'boolean'],
|
|
|
|
'is_logdrain_axiom_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_logdrain_custom_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_logdrain_highlight_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_logdrain_newrelic_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_metrics_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_reachable' => ['type' => 'boolean'],
|
|
|
|
'is_server_api_enabled' => ['type' => 'boolean'],
|
|
|
|
'is_swarm_manager' => ['type' => 'boolean'],
|
|
|
|
'is_swarm_worker' => ['type' => 'boolean'],
|
|
|
|
'is_usable' => ['type' => 'boolean'],
|
|
|
|
'logdrain_axiom_api_key' => ['type' => 'string'],
|
|
|
|
'logdrain_axiom_dataset_name' => ['type' => 'string'],
|
|
|
|
'logdrain_custom_config' => ['type' => 'string'],
|
|
|
|
'logdrain_custom_config_parser' => ['type' => 'string'],
|
|
|
|
'logdrain_highlight_project_id' => ['type' => 'string'],
|
|
|
|
'logdrain_newrelic_base_uri' => ['type' => 'string'],
|
|
|
|
'logdrain_newrelic_license_key' => ['type' => 'string'],
|
|
|
|
'metrics_history_days' => ['type' => 'integer'],
|
|
|
|
'metrics_refresh_rate_seconds' => ['type' => 'integer'],
|
|
|
|
'metrics_token' => ['type' => 'string'],
|
|
|
|
'server_id' => ['type' => 'integer'],
|
|
|
|
'wildcard_domain' => ['type' => 'string'],
|
|
|
|
'created_at' => ['type' => 'string'],
|
|
|
|
'updated_at' => ['type' => 'string'],
|
|
|
|
]
|
|
|
|
)]
|
2023-06-15 07:15:41 +00:00
|
|
|
class ServerSetting extends Model
|
2023-03-30 13:52:19 +00:00
|
|
|
{
|
2023-10-25 09:50:22 +00:00
|
|
|
protected $guarded = [];
|
2023-08-08 09:51:36 +00:00
|
|
|
|
2023-03-30 13:52:19 +00:00
|
|
|
public function server()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Server::class);
|
|
|
|
}
|
|
|
|
}
|