options property

Map<String, Object> options

Implementation

Map<String, Object> get options => <String, Object>{
      // The default has partial values, "1" - all, "0" - nothing
      if (repl != null)
        if (repl!) keyRepl: 1 else keyRepl: 0,
      // Excluded by default
      if (mirroredReadsIncluded) keyMirroredReads: 1,
      if (latchAnalysisIncluded) keyLatchAnalysis: 1,
      // Included by default
      if (assertsExcluded) keyAsserts: 0,
      if (connectionsExcluded) keyConnections: 0,
      if (defaultRWConcernExcluded) keyDefaultRWConcern: 0,
      if (electionMetricsExcluded) keyElectionMetrics: 0,
      if (extraInfoExcluded) keyExtraInfo: 0,
      if (flowControlExcluded) keyFlowControl: 0,
      if (freeMonitoringExcluded) keyFreeMonitoring: 0,
      if (globalLockExcluded) keyGlobalLock: 0,
      if (hedgingMetricsExcluded) keyHedgingMetrics: 0,
      if (logicalSessionRecordCacheExcluded) keyLogicalSessionRecordCache: 0,
      if (locksExcluded) keyLocks: 0, if (memExcluded) keyMem: 0,
      if (metricsExcluded) keyMetrics: 0,
      if (networkExcluded) keyNetwork: 0,
      if (opLatenciesExcluded) keyOpLatencies: 0,
      if (opReadConcernCountersExcluded) keyOpReadConcernCounters: 0,
      if (opWriteConcernCountersExcluded) keyOpWriteConcernCounters: 0,
      if (opcountersExcluded) keyOpcounters: 0,
      if (opcountersReplExcluded) keyOpcountersRepl: 0,
      if (oplogTruncationExcluded) keyOplogTruncation: 0,
      if (securityExcluded) keySecurity: 0,
      if (shardingExcluded) keySharding: 0,
      if (shardingStatisticsExcluded) keyShardingStatistics: 0,
      if (shardedIndexConsistencyExcluded) keyShardedIndexConsistency: 0,
      if (storageEngineExcluded) keyStorageEngine: 0,
      if (transactionsExcluded) keyTransactions: 0,
      if (transportSecurityExcluded) keyTransportSecurity: 0,
      if (watchdogExcluded) keyWatchdog: 0,
      if (wiredTigerExcluded) keyWiredTiger: 0,
    };