array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-commandsucceededevent.getserviceid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandSucceededEvent::getServiceId', 2 => 'Returns the load balancer service ID for the command', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-commandsucceededevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandSucceededEvent', ), 'prev' => array ( 0 => 'mongodb-driver-monitoring-commandsucceededevent.getserverconnectionid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandSucceededEvent::getServerConnectionId', ), 'next' => array ( 0 => 'class.mongodb-driver-monitoring-serverchangedevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\ServerChangedEvent', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/commandsucceededevent/getserviceid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(mongodb >=1.11.0)
MongoDB\Driver\Monitoring\CommandSucceededEvent::getServiceId — Returns the load balancer service ID for the command
When the driver is connected to a MongoDB cluster through a load balancer,
the service ID corresponds to the serviceId field in the
hello command response.
У цієї функції немає параметрів.
Returns the load balancer service ID, or null if the driver is not
connected to a load balancer.