JetBrains PHPverse 2026

The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class

(mongodb >=1.13.0)

Introduzione

The MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent class encapsulates information about a started server heartbeat (i.e. » hello command issued through » server monitoring).

Sommario della classe

final class MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent {
/* Proprietà */
public readonly string $host;
public readonly int $port;
public readonly bool $awaited;
/* Metodi */
final public getHost(): string
final public getPort(): int
final public isAwaited(): bool
}

Proprietà

host
The hostname of the server.
port
The port of the server.
awaited
Whether the heartbeat used a streaming protocol. The extension does not use the streaming protocol for monitoring, so this method will always return false.

Log delle modifiche

Versione Descrizione
PECL mongodb 2.3.0 Added public readonly properties.

Indice dei contenuti

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top