{% extends '@Projet/website_fleet/layout.html.twig' %} {% block fleet_title %}{{ website.name }}{% endblock %} {% block fleet_content %}
Parc web{{ website.client.nom }} · {{ website.cmsType|upper }}

{{ website.name }}

{{ website.description ?: 'Documentation technique et supervision du site.' }}

{% if can_edit %} Modifier{% endif %}{% if website.project %}Voir le projet{% endif %}
{% if active_incidents %}
{{ active_incidents|length }} incident(s) actif(s) sur ce site.Consulter
{% endif %}

Environnements

État, performance et configuration des points de contrôle.

{% for environment in website.environments %}

{{ environment.name }} {% if environment.isPrimary %}Principal{% endif %}

{{ environment.baseUrl }}
{{ environment.healthStatus == 'checking' ? 'Contrôle en attente' : environment.healthStatus|replace({'_':' '})|capitalize }}
HTTP{{ environment.lastHttpStatus ?: '—' }}
Réponse{{ environment.lastResponseTimeMs ? environment.lastResponseTimeMs ~ ' ms' : '—' }}
Dernier contrôle{{ environment.lastCheckedAt ? environment.lastCheckedAt|date('d/m H:i') : 'Jamais' }}
Prochain{{ environment.nextCheckAt ? environment.nextCheckAt|date('d/m H:i') : '—' }}
{% if can_view_database and environment.databases|length %}

Bases de données

{% for database in environment.databases %}{% if not database.archivedAt %}
{{ database.name }} · {{ database.databaseType|upper }} {{ database.engineVersion }}{{ database.host ?: 'Hôte non renseigné' }}{% if can_view_secret_reference and database.credentialReference %} · Coffre : {{ database.credentialReference }}{% endif %}{% if can_manage_database %}
{% endif %}
{% endif %}{% endfor %}
{% endif %}
{% if can_manage_monitoring %} Configurer{% endif %}{% if can_check and environment.monitoringEnabled %}
{% endif %}
{% if can_manage_database %}
Documenter une base de données
{% if can_view_secret_reference %}{% endif %}
{% endif %}
{% else %}

Aucun environnement configuré.

{% endfor %} {% if can_manage_monitoring %}
Ajouter un environnement
{% endif %}

Documentation

Informations non sensibles utiles à l’exploitation.

Contrat{{ website.maintenanceContract ?: 'Non renseigné' }}
Support{{ website.supportLevel ?: 'Non renseigné' }}
Notes techniques

{{ website.technologyNotes ?: 'Aucune note.' }}

Domaines et certificats

Échéances registrar, DNS et TLS.

{% for domain in website.domains %}{% if not domain.archivedAt %}{% endif %}{% else %}{% endfor %}
DomaineRegistrar / DNSExpirationCertificat TLS
{{ domain.domainName }}{% if domain.primaryDomain %} Principal{% endif %}{{ domain.registrar ?: '—' }} / {{ domain.dnsProvider ?: '—' }}{{ domain.expiresAt ? domain.expiresAt|date('d/m/Y') : '—' }}{{ domain.certificateExpiresAt ? domain.certificateExpiresAt|date('d/m/Y') : '—' }}{% if can_manage_infrastructure %}
{% endif %}
Aucun domaine documenté.
{% if can_manage_infrastructure %}
Ajouter un domaine
{% endif %}

Historique des contrôles

Les 20 derniers contrôles par environnement.

{% for environment in website.environments %}

{{ environment.name }}

{% for check in history[environment.idtoken] %}{% else %}{% endfor %}
DateÉtatHTTPTempsDétail
{{ check.checkedAt|date('d/m/Y H:i:s') }}{{ check.status }}{{ check.httpStatusCode ?: '—' }}{{ check.responseTimeMs is not null ? check.responseTimeMs ~ ' ms' : '—' }}{{ check.errorMessage ?: check.finalUrl }}
Aucun contrôle.
{% endfor %}
{% if can_edit %}
{% endif %} {% endblock %}