Instance Propertymongokitten 7.9.5MongoCore
hidden
A boolean value that, when true, indicates that the current instance is hidden. The hidden field is only present for hidden members.
ServerHandshake.swift:80let hidden: Bool?
Other members in extension
Type members
Instance members
let arbiterOnly: Bool?
A boolean value that, when true, indicates that the current instance is an arbiter. The arbiterOnly field is only present, if the instance is an arbiter.
let arbiters: [String]?
An array of strings in the format of “[hostname]:[port]” listing all members of the replica set that are arbiters.
let electionId: ObjectId?
A unique identifier for each election. Included only in the output of isMaster for the primary. Used by clients to determine when elections occur.
let hosts: [String]?
An array of strings in the format of “[hostname]:[port]” that lists all members of the replica set that are neither hidden, passive, nor arbiters.
let ismaster: Bool
A boolean value that reports when this node is writable. If true, then this instance is a primary in a replica set, or a master in a master-slave configuration, or a mongos instance, or a standalone mongod.
let localTime: Date?
Returns the local server time in UTC. This value is an ISO date.
let logicalSessionTimeoutMinutes: Int?
The time in minutes that a session remains active after its most recent use. Sessions that have not received a new read/write operation from the client or been refreshed with refreshSessions within this threshold are cleared from the cache. State associated with an expired session may be cleaned up by the server at any time.
let maxBsonObjectSize: Int?
The maximum permitted size of a BSON object in bytes for this mongod process. If not provided, clients should assume a max size of “16 * 1024 * 1024”.
let maxMessageSizeBytes: Int?
The maximum permitted size of a BSON wire protocol message. The default value is 48000000 bytes.
let maxWireVersion: WireVersion
The latest version of the wire protocol that this mongod or mongos instance is capable of using to communicate with clients.
let maxWriteBatchSize: Int?
The maximum number of write operations permitted in a write batch. If a batch exceeds this limit, the client driver divides the batch into smaller groups each with counts less than or equal to the value of this field.
let me: String?
The [hostname]:[port] of the member that returned isMaster.
let minWireVersion: WireVersion
The earliest version of the wire protocol that this mongod or mongos instance is capable of using to communicate with clients.
let msg: String?
Contains the value isdbgrid when isMaster returns from a mongos instance.
let ok: Int
let passive: Bool?
A boolean value that, when true, indicates that the current instance is passive. The passive field is only present for members with a members[n].priority of 0.
let passives: [String]?
An array of strings in the format of “[hostname]:[port]” listing all members of the replica set which have a members[n].priority of 0.
let primary: String?
A string in the format of “[hostname]:[port]” listing the current primary member of the replica set.
let readOnly: Bool?
A boolean value that, when true, indicates that the mongod or mongos is running in read-only mode.
let saslSupportedMechs: [String]?
A list of all supported mechanisms
let secondary: Bool?
A boolean value that, when true, indicates if the mongod is a secondary member of a replica set.
let setName: String?
The name of the current :replica set.
let setVersion: Int32?
The current replica set config version.