# boolean_smtp_health_check_result

> Fires after the scheduled health check has probed one connection and recorded the outcome on it.

Action · Tier A · Since 1.0.0

Fires for healthy and unhealthy connections alike, so a monitoring integration can track every check; the plugin's own alert channels only react to failures.

## Signature

```php
add_action( 'boolean_smtp_health_check_result', $callback, 10, 3 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$connection` | `\BooleanSmtp\Models\Connection` | The probed connection, with its health status updated. |
| `$healthy` | `bool` | Whether the probe succeeded. |
| `$error` | `string|null` | The probe's error message, `null` when healthy. |

## Fires in

- [app/Jobs/HealthCheckJob.php:146](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Jobs/HealthCheckJob.php#L146) — `BooleanSmtp\Jobs\HealthCheckJob::handle()`

## Example

```php
add_action( 'boolean_smtp_health_check_result', function ( \BooleanSmtp\Models\Connection $connection, bool $healthy, ?string $error ) {
    // React to the event.
}, 10, 3 );
```
