(mongodb >=1.11.0)
MongoDB\Driver\Monitoring\CommandStartedEvent::getServiceId — 傳回命令的負載平衡器服務 ID
當驅動程式透過負載平衡器連線到 MongoDB 叢集時,服務 ID 對應於 hello 命令回應中的 serviceId 欄位。
hello
serviceId
此函式沒有參數。
傳回負載平衡器服務 ID,如果驅動程式未連線到負載平衡器,則傳回 null(空值)。
null