(
self,
duration: datetime.timedelta,
failure: _DocumentOut,
command_name: str,
request_id: int,
connection_id: _Address,
operation_id: Optional[int],
service_id: Optional[ObjectId] = None,
database_name: str = "",
server_connection_id: Optional[int] = None,
)
| 752 | __slots__ = ("__duration_micros", "__failure") |
| 753 | |
| 754 | def __init__( |
| 755 | self, |
| 756 | duration: datetime.timedelta, |
| 757 | failure: _DocumentOut, |
| 758 | command_name: str, |
| 759 | request_id: int, |
| 760 | connection_id: _Address, |
| 761 | operation_id: Optional[int], |
| 762 | service_id: Optional[ObjectId] = None, |
| 763 | database_name: str = "", |
| 764 | server_connection_id: Optional[int] = None, |
| 765 | ) -> None: |
| 766 | super().__init__( |
| 767 | command_name, |
| 768 | request_id, |
| 769 | connection_id, |
| 770 | operation_id, |
| 771 | service_id=service_id, |
| 772 | database_name=database_name, |
| 773 | server_connection_id=server_connection_id, |
| 774 | ) |
| 775 | self.__duration_micros = _to_micros(duration) |
| 776 | self.__failure = failure |
| 777 | |
| 778 | @property |
| 779 | def duration_micros(self) -> int: |
nothing calls this directly
no test coverage detected