Class AdminCommandPollingEvent

Event emitted when a command is polling in a long-running operation (i.e. create database).

Emits every time the command polls.

See AdminCommandEvent for more information about all the common properties available on this event.

Hierarchy (view full)

Constructors

Properties

elapsed: number

The elapsed time since the command was started, in milliseconds.

interval: number

The polling interval, in milliseconds.

longRunning: boolean

Whether the command is long-running or not, i.e. requires polling.

method: "DELETE" | "GET" | "POST"

The HTTP method for the request.

params?: Record<string, any>

The query parameters, if any.

path: string

The path for the request, not including the Base URL.

reqBody?: Record<string, any>

The request body, if any.