server_description – An object representation of a server the driver is connected to.

    class pymongo.server_description.ServerDescription

    Immutable representation of one server.

    Warning

    The ismaster parameter will be renamed to hello in PyMongo 4.0.

    • error

      The last error attempting to connect to the server, or None.

    • primary

      This server’s opinion about who the primary is, or None.

    • replica_set_name

      Replica set name or None.

    • retryable_writes_supported

      Checks if this server supports retryable writes.

    • round_trip_time

      The current average latency or None.

    • server_type

      The type of this server.

    • New in version 3.4.