getMessage(); } if ($connection instanceof mysqli) { $sql = <<query($sql); if ($result instanceof mysqli_result) { while ($row = $result->fetch_assoc()) { if (!empty($row['checked_at'])) { $timestamp = DateTimeImmutable::createFromFormat( 'Y-m-d H:i:s', $row['checked_at'], new DateTimeZone('UTC') ); if ($timestamp instanceof DateTimeImmutable) { $timestamp = $timestamp->setTimezone($appTimeZone); $row['checked_at_formatted'] = $timestamp->format('M j, Y g:i:s A T'); } } $devices[] = $row; } $result->free(); } } catch (Throwable $exception) { $errorMessage = $exception->getMessage(); } finally { $connection->close(); } } ob_start(); ?>

Device latency status

Latest response times collected by the latency watcher service.

Unable to load data:
No latency samples have been recorded yet. Verify the watcher is running and devices are configured.
'latency:' . $device['id'], 'primary_label' => $device['label'], 'autostart' => '1', 'interval' => '5000', ]); if ($status === 'up') { $statusLabel = 'Online'; $statusClass = 'status-pill--up'; } elseif ($status === 'down') { $statusLabel = 'Offline'; $statusClass = 'status-pill--down'; } ?>
Device Host Status Latency (ms) Last checked