Type alias DataAPIClientEvents

The events emitted by the DataAPIClient. These events are emitted at various stages of the command's lifecycle. Intended for use for monitoring and logging purposes.

Events include:

  • commandStarted - Emitted when a command is started, before the initial HTTP request is made.
  • commandSucceeded - Emitted when a command has succeeded.
  • commandFailed - Emitted when a command has errored.
  • adminCommandStarted - Emitted when an admin command is started, before the initial HTTP request is made.
  • adminCommandPolling - Emitted when a command is polling in a long-running operation (i.e. create database).
  • adminCommandSucceeded - Emitted when an admin command has succeeded, after any necessary polling.
  • adminCommandFailed - Emitted when an admin command has errored.