CluPilotCloud/app/Services/Monitoring/MonitoringClient.php

15 lines
427 B
PHP

<?php
namespace App\Services\Monitoring;
interface MonitoringClient
{
/** Register an uptime/monitoring target; returns the external target id. */
public function registerTarget(string $name, string $url): string;
public function deregisterTarget(string $externalId): void;
/** Current health of a target as reported by the monitoring provider. */
public function isHealthy(string $externalId): bool;
}