Refactor health check DTOs around a common CheckResult contract and remove the\nlegacy HealthChecks aggregate object.\n\nAdd a dedicated /api/v1/health/oracle endpoint with response mapping, OpenAPI\nschema updates, and Bruno request coverage.\n\nAlign feature, unit, integration, architecture and OpenAPI tests with the new\nset-based checks representation and make Oracle health tests deterministic in CI.\n\nUpdate command documentation to the uwil:* command namespace. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
522 B
PHP
27 lines
522 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Application\Health\Dto;
|
|
|
|
use Application\Health\Enums\ComponentStatus;
|
|
|
|
final readonly class DatabaseCheckResult implements CheckResult
|
|
{
|
|
public function __construct(
|
|
public ComponentStatus $status,
|
|
public string $connection,
|
|
public ?string $message = null,
|
|
) {
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return $this->connection;
|
|
}
|
|
|
|
public function getStatus(): ComponentStatus
|
|
{
|
|
return $this->status;
|
|
}
|
|
}
|