MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getHost

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getHostReturns the hostname of the server

說明

final public MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent::getHost(): string

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

Returns the hostname of the server.

錯(cuò)誤/異常