OpenQuizz
Une application de gestion des contenus pédagogiques
CommandFailedEvent Class Reference
Inheritance diagram for CommandFailedEvent:
Collaboration diagram for CommandFailedEvent:

Public Member Functions

def __init__ (self, duration, failure, *args)
 
def duration_micros (self)
 
def failure (self)
 
def __repr__ (self)
 
- Public Member Functions inherited from _CommandEvent
def __init__ (self, command_name, request_id, connection_id, operation_id)
 
def command_name (self)
 
def request_id (self)
 
def connection_id (self)
 
def operation_id (self)
 

Detailed Description

Event published when a command fails.

:Parameters:
  - `duration`: The command duration as a datetime.timedelta.
  - `failure`: The server reply document.
  - `command_name`: The command name.
  - `request_id`: The request id for this operation.
  - `connection_id`: The address (host, port) of the server this command
    was sent to.
  - `operation_id`: An optional identifier for a series of related events.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  duration,
  failure,
args 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ duration_micros()

def duration_micros (   self)
The duration of this operation in microseconds.

◆ failure()

def failure (   self)
The server failure document for this operation.

The documentation for this class was generated from the following file: