Seite nicht gefunden

Die angeforderte Seite existiert nicht.

Zurück zur Startseite

'; require __DIR__ . '/includes/footer_customer.php'; exit; } $states = status_component_states(); $overall = status_overall($pdo); $components = status_components($pdo, false, true); foreach ($components as &$component) { $component['timeline'] = status_component_timeline($pdo, (int) $component['id'], 30); } unset($component); $incidents = status_incidents($pdo, 14); $maintenanceWindows = status_maintenance_windows($pdo); $activeMaintenance = status_active_maintenance_map($pdo); $open = array_values(array_filter($incidents, fn($i) => $i['status'] !== 'resolved')); $past = array_values(array_filter($incidents, fn($i) => $i['status'] === 'resolved')); $incStates = status_incident_states(); if (($_GET['live'] ?? '') === '1') { header('Content-Type: application/json; charset=utf-8'); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); $liveComponents = []; foreach ($components as $component) { $componentStatus = (string) $component['status']; if (($componentStatus === 'operational') && (isset($activeMaintenance[0]) || isset($activeMaintenance[(int) $component['id']]))) $componentStatus = 'maintenance'; $componentState = $states[$componentStatus] ?? $states['operational']; $liveComponents[] = [ 'id' => (int) $component['id'], 'status' => $componentStatus, 'statusLabel' => (string) $componentState[0], 'color' => (string) $componentState[1], 'uptime' => $component['timeline']['uptime'], 'bars' => array_map(static function (array $bar) use ($states): array { $key = $bar['status']; return [ 'date' => (string) $bar['date'], 'status' => $key, 'label' => $key !== null ? (string) ($states[$key][0] ?? $key) : 'Keine Daten', 'color' => $key !== null ? (string) ($states[$key][1] ?? '#cbd5e1') : '#dfe4e8', ]; }, $component['timeline']['bars']), ]; } $liveIncidents = []; foreach ($open as $incident) { $liveIncidents[] = [ 'title' => (string) $incident['title'], 'statusLabel' => (string) ($incStates[$incident['status']] ?? $incident['status']), 'componentName' => (string) ($incident['component_name'] ?? ''), 'updates' => array_map(static fn(array $update): array => [ 'statusLabel' => (string) ($incStates[$update['status']] ?? $update['status']), 'createdAt' => format_dt((string) $update['created_at']), 'body' => (string) ($update['body'] ?? ''), ], $incident['updates']), ]; } $liveMaintenance = []; foreach ($maintenanceWindows as $window) { $liveMaintenance[] = [ 'title' => (string) $window['title'], 'body' => (string) ($window['body'] ?? ''), 'componentName' => (string) ($window['component_name'] ?? ''), 'startsAt' => format_dt((string) $window['starts_at']), 'endsAt' => format_dt((string) $window['ends_at']), 'active' => strtotime((string) $window['starts_at']) <= time() && strtotime((string) $window['ends_at']) >= time(), ]; } echo json_encode([ 'updatedAt' => date('d.m.Y H:i:s'), 'overall' => $overall, 'components' => $liveComponents, 'incidents' => $liveIncidents, 'maintenanceWindows' => $liveMaintenance, ], JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT); exit; } header('Cache-Control: no-cache, no-store, must-revalidate'); require __DIR__ . '/includes/header_customer.php'; ?>

Stand: Uhr · Live-Aktualisierung aktiv
= time(); ?>
:
bis
Betrifft:
Betrifft: gesamte Plattform
Betrifft:
·

Es sind noch keine Dienste eingetragen.

$group): ?>

$c): $componentStatus = (string) $c['status']; if ($componentStatus === 'operational' && (isset($activeMaintenance[0]) || isset($activeMaintenance[(int) $c['id']]))) $componentStatus = 'maintenance'; $st = $states[$componentStatus] ?? $states['operational']; ?>
Letzte PrüfungenJetzt
$stateMeta): ?> Keine Daten

Vergangene Meldungen (letzte 14 Tage)

Keine Störungen in den letzten 14 Tagen.

· · behoben