MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get

Method get

pymongo/asynchronous/monitor.py:469–472  ·  view source on GitHub ↗

Get the calculated average, or None if no samples yet and the min.

(self)

Source from the content-addressed store, hash-verified

467 self._moving_min.add_sample(sample)
468
469 async def get(self) -> tuple[Optional[float], float]:
470 """Get the calculated average, or None if no samples yet and the min."""
471 async with self._lock:
472 return self._moving_average.get(), self._moving_min.get()
473
474 async def reset(self) -> None:
475 """Reset the average RTT."""

Callers 15

get_cursorMethod · 0.45
_cursor_collectionMethod · 0.45
_check_onceMethod · 0.45
_get_encrypted_fieldsMethod · 0.45
create_collectionMethod · 0.45
innerMethod · 0.45
_list_collectionsMethod · 0.45
validate_collectionMethod · 0.45
commandFunction · 0.45
_process_resultMethod · 0.45
_process_changeMethod · 0.45
on_changeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected