« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for commandFailed (0.001 sec.)
MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed — Notification metho... 11812
MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed (mongodb >=1.3.0) MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed — Notification method for a failed command 説明 abstract public function MongoDB\Driver\Monitoring\Comma ... ndSubscriber::commandFailed ( MongoDB\Driver\Monitoring\CommandFailedEvent $event ): void If the subscriber is registered, this method is called when ... a command fails. パラメータ event ( MongoDB\Driver\Monitoring\CommandFailedEvent ) An event object encapsulating information about the failed command. 戻り値 値を返しません。 エラー / 例外 Throws Mo ... ngoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 参考 MongoDB\Driver\Monitoring\CommandFailedEvent MongoDB\Driver\Monitoring\addSubscriber() - Registers a monitoring event subscriber globally MongoDB\Driver\Manager:: ...
https://man.mtool.work/php/8.3/mongodb-driver-monitoring-commandsubscriber.comma...
Application Performance Monitoring (APM) | PHP 8.3 8687
Application Performance Monitoring (APM) The extension contains an event subscriber API, which allows applications to monitor commands and internal activity pertaining to the » Server Discovery and Monitoring Specification . This tutorial w ... . The MongoDB\Driver\Monitoring\CommandSubscriber interface defines three methods: commandStarted , commandSucceeded , and commandFailed . Each of these three methods accept a single event argument of a specific class for the respective event. For example, th ... { } public function commandSucceeded ( \MongoDB\Driver\Monitoring\CommandSucceededEvent $event ): void { } public function commandFailed ( \MongoDB\Driver\Monitoring\CommandFailedEvent $event ): void { } } ?> Registering the Subscriber Once a subscriber objec ... d the duration of the event (from durationMicros ) to the total time and increment the operation count. If a corresponding commandFailed event is encountered, we just remove the entry from the pendingCommands property. <?php class QueryTimeCollector implement ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
The MongoDB\Driver\Monitoring\CommandSubscriber interface | PHP 8.3 7385
The MongoDB\Driver\Monitoring\CommandSubscriber interface (mongodb >=1.3.0) はじめに Classes may implement this interface to register an event subscriber that is notified for each started, successful, and failed command event. See Applicati ... ver\Monitoring\CommandSubscriber implements MongoDB\Driver\Monitoring\Subscriber { /* メソッド */ abstract public function commandFailed ( MongoDB\Driver\Monitoring\CommandFailedEvent $event ): void abstract public function commandStarted ( MongoDB\Driver\Mon ... ypeWillChange] attribute can be added to silence the deprecation notice. 目次 MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed — Notification method for a failed command MongoDB\Driver\Monitoring\CommandSubscriber::commandStarted — Notification meth ...
https://man.mtool.work/php/8.3/class.mongodb-driver-monitoring-commandsubscriber...
PREV 1 NEXT